You are here

interface CustomPermissionsInterface in Field Permissions 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/CustomPermissionsInterface.php \Drupal\field_permissions\Plugin\CustomPermissionsInterface

Denotes that this field permission type generates custom permissions.

Hierarchy

Expanded class hierarchy of CustomPermissionsInterface

All classes that implement CustomPermissionsInterface

4 files declare their use of CustomPermissionsInterface
CustomAccess.php in src/Plugin/FieldPermissionType/CustomAccess.php
FieldPermissionsController.php in src/Controller/FieldPermissionsController.php
FieldPermissionsService.php in src/FieldPermissionsService.php
TestAccess.php in tests/modules/field_permissions_test/src/Plugin/FieldPermissionType/TestAccess.php

File

src/Plugin/CustomPermissionsInterface.php, line 8

Namespace

Drupal\field_permissions\Plugin
View source
interface CustomPermissionsInterface {

  /**
   * Returns an array of permissions suitable for use in a permission callback.
   *
   * @return array
   *   An array of permissions.
   */
  public function getPermissions();

}

Members

Namesort descending Modifiers Type Description Overrides
CustomPermissionsInterface::getPermissions public function Returns an array of permissions suitable for use in a permission callback. 2