public function BlocktabsListBuilder::getDefaultOperations in Block Tabs 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/
BlocktabsListBuilder.php, line 72
Class
- BlocktabsListBuilder
- Defines a class to build a listing of blocktabs entities.
Namespace
Drupal\blocktabsCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
// Remove destination URL from the edit link to allow editing tabs.
if (isset($operations['edit'])) {
$operations['edit']['url'] = $entity
->toUrl('edit-form');
}
return $operations;
}