public function PagererPresetListBuilder::getDefaultOperations in Pagerer 8
Same name and namespace in other branches
- 8.2 src/PagererPresetListBuilder.php \Drupal\pagerer\PagererPresetListBuilder::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
- src/
PagererPresetListBuilder.php, line 43
Class
- PagererPresetListBuilder
- Provides a listing of Pagerer presets.
Namespace
Drupal\pagererCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
if (isset($operations['edit'])) {
$operations['edit']['url'] = $entity
->toUrl('edit-form');
}
return $operations;
}