public function FlagInterface::actionPermissions in Flag 8.4
Returns an associative array of permissions used by flag_permission().
Typically there are two permissions, one to flag, and one to unflag. Each key of the array is the permission name. Each value is an array with a single element, 'title', which provides the display name for the permission.
Return value
array An array of permissions.
See also
\Drupal\flag\Entity\Flag::actionPermissions()
1 method overrides FlagInterface::actionPermissions()
- Flag::actionPermissions in src/
Entity/ Flag.php - Returns an associative array of permissions used by flag_permission().
File
- src/
FlagInterface.php, line 129
Class
- FlagInterface
- Defines the interface for Flag entities.
Namespace
Drupal\flagCode
public function actionPermissions();