You are here

public function ImageStyleListBuilder::getDefaultOperations in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/image/src/ImageStyleListBuilder.php \Drupal\image\ImageStyleListBuilder::getDefaultOperations()

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/image/src/ImageStyleListBuilder.php, line 77
Contains \Drupal\image\ImageStyleListBuilder.

Class

ImageStyleListBuilder
Defines a class to build a listing of image style entities.

Namespace

Drupal\image

Code

public function getDefaultOperations(EntityInterface $entity) {
  $flush = array(
    'title' => t('Flush'),
    'weight' => 200,
    'url' => $entity
      ->urlInfo('flush-form'),
  );
  return parent::getDefaultOperations($entity) + array(
    'flush' => $flush,
  );
}