function BlockContentListBuilder::getOperations

Overrides EntityListBuilder::getOperations

File

core/modules/block_content/src/BlockContentListBuilder.php, line 50

Class

BlockContentListBuilder
Defines a class to build a listing of content block entities.

Namespace

Drupal\block_content

Code

public function getOperations(EntityInterface $entity) {
  $operations = parent::getOperations($entity);
  // The 'View' operation doesn't make sense for content blocks.
  unset($operations['view']);
  return $operations;
}

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