public function BlockCategoryListingForm::getDefaultOperations in Layout Builder Browser 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/
Form/ BlockCategoryListingForm.php, line 41
Class
- BlockCategoryListingForm
- Builds a listing of block category entities.
Namespace
Drupal\layout_builder_browser\FormCode
public function getDefaultOperations(EntityInterface $entity) {
$operations = parent::getDefaultOperations($entity);
if (isset($operations['edit'])) {
$operations['edit']['title'] = $this
->t('Edit');
}
return $operations;
}