You are here

public function Flag::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.

Overrides FlagInterface::actionPermissions

See also

\Drupal\flag\Entity\Flag::actionPermissions()

File

src/Entity/Flag.php, line 334

Class

Flag
Provides the Flag configuration entity.

Namespace

Drupal\flag\Entity

Code

public function actionPermissions() {
  return $this
    ->getFlagTypePlugin()
    ->actionPermissions($this);
}