You are here

public function SliderProListBuilder::getDefaultOperations in Slider Pro 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/Controller/SliderProListBuilder.php, line 35

Class

SliderProListBuilder
Class SliderProListBuilder @package Drupal\slider_pro\Controller

Namespace

Drupal\slider_pro\Controller

Code

public function getDefaultOperations(EntityInterface $entity) {
  $ops = parent::getDefaultOperations($entity);

  // Do not allow deletion of the default configuration.
  if ($entity
    ->id() == 'default') {
    unset($ops['delete']);
  }
  return $ops;
}