You are here

public function Pbf::getOperations in Permissions by field 8

Return the list of operations available.

Return value

array The list of operations.

File

src/Plugin/Field/FieldType/Pbf.php, line 348

Class

Pbf
Plugin implementation of the 'pbf' field type.

Namespace

Drupal\pbf\Plugin\Field\FieldType

Code

public function getOperations() {
  $operations = [
    'grant_public' => $this
      ->t('Public'),
    'grant_view' => $this
      ->t('Grant View'),
    'grant_update' => $this
      ->t('Grant Update'),
    'grant_delete' => $this
      ->t('Grant Delete'),
  ];
  return $operations;
}