public static function FieldPermissionsServiceInterface::getList in Field Permissions 8.2
Same name and namespace in other branches
- 8 src/FieldPermissionsServiceInterface.php \Drupal\field_permissions\FieldPermissionsServiceInterface::getList()
Obtain the list of field permissions.
@todo This is really only releavant to the custom field permission type plugin. However, since it is used in the report page, it would be difficult to abstract down to the plugin level the way the report currently works.
Parameters
string $field_label: The human readable name of the field to use when constructing permission names. Usually this will be derived from one or more of the field instance labels.
Return value
array An array keyed by the permission machine name, with label and description keys. Note that this machine name doesn't include the field name.
1 method overrides FieldPermissionsServiceInterface::getList()
- FieldPermissionsService::getList in src/
FieldPermissionsService.php - Obtain the list of field permissions.
File
- src/
FieldPermissionsServiceInterface.php, line 32
Class
- FieldPermissionsServiceInterface
- Implement FieldPermission Interface.
Namespace
Drupal\field_permissionsCode
public static function getList($field_label = '');