You are here

interface ManagedRolePermissionsManagerInterface in farmOS 2.x

Interface for the ManagedRolePermissionsManager.

Hierarchy

Expanded class hierarchy of ManagedRolePermissionsManagerInterface

All classes that implement ManagedRolePermissionsManagerInterface

1 file declares its use of ManagedRolePermissionsManagerInterface
LogAssignActionForm.php in modules/core/owner/src/Form/LogAssignActionForm.php

File

modules/core/role/src/ManagedRolePermissionsManagerInterface.php, line 12

Namespace

Drupal\farm_role
View source
interface ManagedRolePermissionsManagerInterface {

  /**
   * Returns an array of managed roles.
   *
   * @return \Drupal\user\RoleInterface[]
   *   An array of managed roles.
   */
  public function getMangedRoles() : array;

  /**
   * Checks if the role is a managed role.
   *
   * @param \Drupal\user\RoleInterface $role
   *   The Role to check.
   *
   * @return bool
   *   If the role is a managed role.
   */
  public function isManagedRole(RoleInterface $role);

  /**
   * Checks if the role has a specified permission.
   *
   * @param string $permission
   *   The permission string to check.
   * @param \Drupal\user\RoleInterface $role
   *   The Role to check.
   *
   * @return bool
   *   If the role has the permission.
   */
  public function isPermissionInRole($permission, RoleInterface $role);

}

Members

Namesort descending Modifiers Type Description Overrides
ManagedRolePermissionsManagerInterface::getMangedRoles public function Returns an array of managed roles. 1
ManagedRolePermissionsManagerInterface::isManagedRole public function Checks if the role is a managed role. 1
ManagedRolePermissionsManagerInterface::isPermissionInRole public function Checks if the role has a specified permission. 1