public function CustomBreadcrumbsListBuilder::getDefaultOperations in Custom Breadcrumbs 1.x
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/
CustomBreadcrumbsListBuilder.php, line 41
Class
- CustomBreadcrumbsListBuilder
- Provides a listing of custom breadcrumbs.
Namespace
Drupal\custom_breadcrumbsCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
$operations['status'] = [
'title' => $this
->t('Enable/Disable'),
'weight' => 15,
'url' => $this
->ensureDestination($entity
->toUrl('status_form')),
];
return $operations;
}