public function CustomPermissionsInterface::getPermissions in Field Permissions 8
Same name and namespace in other branches
- 8.2 src/Plugin/CustomPermissionsInterface.php \Drupal\field_permissions\Plugin\CustomPermissionsInterface::getPermissions()
Returns an array of permissions suitable for use in a permission callback.
Return value
array An array of permissions.
2 methods override CustomPermissionsInterface::getPermissions()
- CustomAccess::getPermissions in src/
Plugin/ FieldPermissionType/ CustomAccess.php - Returns an array of permissions suitable for use in a permission callback.
- TestAccess::getPermissions in tests/
modules/ field_permissions_test/ src/ Plugin/ FieldPermissionType/ TestAccess.php - Returns an array of permissions suitable for use in a permission callback.
File
- src/
Plugin/ CustomPermissionsInterface.php, line 16
Class
- CustomPermissionsInterface
- Denotes that this field permission type generates custom permissions.
Namespace
Drupal\field_permissions\PluginCode
public function getPermissions();