diff --git a/core/modules/user/src/Entity/Role.php b/core/modules/user/src/Entity/Role.php index a5e2b51..e02c97a 100644 --- a/core/modules/user/src/Entity/Role.php +++ b/core/modules/user/src/Entity/Role.php @@ -47,14 +47,14 @@ class Role extends ConfigEntityBase implements RoleInterface { * * @var string */ - public $id; + protected $id; /** * The human-readable label of this role. * * @var string */ - public $label; + protected $label; /** * The weight of this role in administrative listings. @@ -68,7 +68,7 @@ class Role extends ConfigEntityBase implements RoleInterface { * * @var array */ - public $permissions = array(); + protected $permissions = array(); /** * {@inheritdoc} @@ -152,19 +152,4 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) { entity_render_cache_clear(); } - /** - * {@inheritdoc} - * - * @todo remove this function when #2256679 goes in. - */ - public function toArray() { - $properties = parent::toArray(); - $names = array( - 'weight', - ); - foreach ($names as $name) { - $properties[$name] = $this->get($name); - } - return $properties; - } }