public function PageListBuilder::getDefaultOperations in Page Manager 8
Same name and namespace in other branches
- 8.4 page_manager_ui/src/Entity/PageListBuilder.php \Drupal\page_manager_ui\Entity\PageListBuilder::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
- page_manager_ui/
src/ Entity/ PageListBuilder.php, line 45 - Contains \Drupal\page_manager_ui\Entity\PageListBuilder.
Class
- PageListBuilder
- Provides a list builder for page entities.
Namespace
Drupal\page_manager_ui\EntityCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
$operations['edit']['url'] = new Url('entity.page.edit_form', [
'machine_name' => $entity
->id(),
'step' => 'general',
]);
return $operations;
}