public function FlexsliderListBuilder::getDefaultOperations in Flex Slider 8.2
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/ FlexsliderListBuilder.php, line 34
Class
- FlexsliderListBuilder
- Provides a listing of Flexslider optionset entities.
Namespace
Drupal\flexslider\ControllerCode
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;
}