You are here

interface ManagedRolePermissionsInterface in farmOS 2.x

Provides an interface for defining ManagedRolePermissions plugins.

Hierarchy

Expanded class hierarchy of ManagedRolePermissionsInterface

All classes that implement ManagedRolePermissionsInterface

File

modules/core/role/src/ManagedRolePermissionsInterface.php, line 10

Namespace

Drupal\farm_role
View source
interface ManagedRolePermissionsInterface {

  /**
   * Returns the default permissions.
   *
   * @return array
   *   Array of permission strings.
   */
  public function getDefaultPermissions();

  /**
   * Returns the config permissions.
   *
   * @return array
   *   Array of permission strings.
   */
  public function getConfigPermissions();

  /**
   * Returns permission callback strings.
   *
   * @return array
   *   Array of function callbacks in controller syntax, see
   *   \Drupal\Core\Controller\ControllerResolver
   */
  public function getPermissionCallbacks();

}

Members

Namesort descending Modifiers Type Description Overrides
ManagedRolePermissionsInterface::getConfigPermissions public function Returns the config permissions. 1
ManagedRolePermissionsInterface::getDefaultPermissions public function Returns the default permissions. 1
ManagedRolePermissionsInterface::getPermissionCallbacks public function Returns permission callback strings. 1