summaryrefslogtreecommitdiffstats
path: root/core/modules/breakpoint
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-06-14 10:03:25 +0100
committerNathaniel Catchpole2014-06-14 10:03:25 +0100
commit0c33183a9e6f902eeee2c45639b03bfdb35b52f4 (patch)
treeb6bdb7569513f3379b6f2ce668af9f388fae94b5 /core/modules/breakpoint
parent7d1c02a73d192fb6bf8ad1d42119e691d9f55d15 (diff)
Issue #2256679 by alexpott, tim.plunkett: Fixed Use config schema to determine which config entity properties to export regardless of whether they are public or protected.
Diffstat (limited to 'core/modules/breakpoint')
-rw-r--r--core/modules/breakpoint/config/schema/breakpoint.schema.yml12
-rw-r--r--core/modules/breakpoint/src/Entity/BreakpointGroup.php23
2 files changed, 12 insertions, 23 deletions
diff --git a/core/modules/breakpoint/config/schema/breakpoint.schema.yml b/core/modules/breakpoint/config/schema/breakpoint.schema.yml
index 4a66914..c44ef4c 100644
--- a/core/modules/breakpoint/config/schema/breakpoint.schema.yml
+++ b/core/modules/breakpoint/config/schema/breakpoint.schema.yml
@@ -3,6 +3,12 @@ breakpoint.breakpoint.*.*.*:
type: config_entity
label: 'Defines the Breakpoint entity'
mapping:
+ id:
+ type: string
+ label: 'ID'
+ label:
+ type: label
+ label: 'Label'
name:
type: string
label: 'Machine name'
@@ -29,6 +35,12 @@ breakpoint.breakpoint_group.*.*.*:
type: config_entity
label: 'Breakpoint group settings'
mapping:
+ id:
+ type: string
+ label: 'ID'
+ label:
+ type: label
+ label: 'Label'
name:
type: string
label: 'Machine name'
diff --git a/core/modules/breakpoint/src/Entity/BreakpointGroup.php b/core/modules/breakpoint/src/Entity/BreakpointGroup.php
index 02d6e29..0b585e2 100644
--- a/core/modules/breakpoint/src/Entity/BreakpointGroup.php
+++ b/core/modules/breakpoint/src/Entity/BreakpointGroup.php
@@ -214,29 +214,6 @@ class BreakpointGroup extends ConfigEntityBase implements BreakpointGroupInterfa
/**
* {@inheritdoc}
*/
- public function toArray() {
- $names = array(
- 'id',
- 'uuid',
- 'name',
- 'label',
- 'breakpoint_ids',
- 'source',
- 'sourceType',
- 'status',
- 'langcode',
- 'dependencies',
- );
- $properties = array();
- foreach ($names as $name) {
- $properties[$name] = $this->get($name);
- }
- return $properties;
- }
-
- /**
- * {@inheritdoc}
- */
public function calculateDependencies() {
parent::calculateDependencies();