function BlockListBuilder::getDefaultOperations

Same name in other branches
  1. 9 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getDefaultOperations()
  2. 10 core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getDefaultOperations()
  3. 11.x core/modules/block/src/BlockListBuilder.php \Drupal\block\BlockListBuilder::getDefaultOperations()

Overrides ConfigEntityListBuilder::getDefaultOperations

File

core/modules/block/src/BlockListBuilder.php, line 351

Class

BlockListBuilder
Defines a class to build a listing of block entities.

Namespace

Drupal\block

Code

public function getDefaultOperations(EntityInterface $entity) {
    $operations = parent::getDefaultOperations($entity);
    if (isset($operations['edit'])) {
        $operations['edit']['title'] = $this->t('Configure');
    }
    if (isset($operations['delete'])) {
        $operations['delete']['title'] = $this->t('Remove');
    }
    return $operations;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.