You are here

public function AccessSchemeListBuilder::getDefaultOperations in Workbench Access 8

Gets this list's default operations.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for.

Return value

array The array structure is identical to the return value of self::getOperations().

Overrides ConfigEntityListBuilder::getDefaultOperations

File

src/AccessSchemeListBuilder.php, line 32

Class

AccessSchemeListBuilder
Provides a listing of Access scheme entities.

Namespace

Drupal\workbench_access

Code

public function getDefaultOperations(EntityInterface $entity) {
  return parent::getDefaultOperations($entity) + [
    'sections' => [
      'title' => $this
        ->t('Sections'),
      'weight' => 0,
      'url' => $entity
        ->toUrl('sections'),
    ],
  ];
}