diff --git a/core/modules/user/src/Entity/Role.php b/core/modules/user/src/Entity/Role.php index a0c64a5..3ec9178 100644 --- a/core/modules/user/src/Entity/Role.php +++ b/core/modules/user/src/Entity/Role.php @@ -151,13 +151,6 @@ public static function postDelete(EntityStorageInterface $storage, array $entiti /** * {@inheritdoc} */ - public function hasWeight() { - return $this->get('weight') ? TRUE : FALSE; - } - - /** - * {@inheritdoc} - */ public function getWeight() { return $this->get('weight'); } diff --git a/core/modules/user/src/RoleInterface.php b/core/modules/user/src/RoleInterface.php index cea3ed6..9185ced 100644 --- a/core/modules/user/src/RoleInterface.php +++ b/core/modules/user/src/RoleInterface.php @@ -39,8 +39,7 @@ public function hasPermission($permission); * @param string $permission * The permission to grant. * - * @return RoleInterface - * The called object for chaining. + * @return $this */ public function grantPermission($permission); @@ -56,14 +55,6 @@ public function grantPermission($permission); public function revokePermission($permission); /** - * Checks if the role has a weight. - * - * @return bool - * TRUE if the role has a weight, FALSE if not. - */ - public function hasWeight(); - - /** * Returns the weight. * * @return int