ActionListBuilder::getDefaultOperations

public ActionListBuilder::getDefaultOperations(EntityInterface $entity)

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

core/modules/action/src/ActionListBuilder.php, line 99

Class

ActionListBuilder
Defines a class to build a listing of action entities.

Namespace

Drupal\action

Code

public function getDefaultOperations(EntityInterface $entity) {
  $operations = $entity->isConfigurable() ? parent::getDefaultOperations($entity) : array();
  if (isset($operations['edit'])) {
    $operations['edit']['title'] = t('Configure');
  }
  return $operations;
}
doc_Drupal
2016-10-29 08:43:21
Comments
Leave a Comment

Please login to continue.