interface CustomPermissionsInterface in Field Permissions 8
Same name and namespace in other branches
- 8.2 src/Plugin/CustomPermissionsInterface.php \Drupal\field_permissions\Plugin\CustomPermissionsInterface
Denotes that this field permission type generates custom permissions.
Hierarchy
- interface \Drupal\field_permissions\Plugin\CustomPermissionsInterface
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\PluginView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CustomPermissionsInterface:: |
public | function | Returns an array of permissions suitable for use in a permission callback. | 2 |