public function FacConfigListBuilder::getDefaultOperations in Fast Autocomplete 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/
Controller/ FacConfigListBuilder.php, line 95
Class
- FacConfigListBuilder
- Provides a listing of FacConfig.
Namespace
Drupal\fac\ControllerCode
public function getDefaultOperations(EntityInterface $entity) {
/** @var \Drupal\Core\Config\Entity\ConfigEntityInterface $entity */
$operations = parent::getDefaultOperations($entity);
$operations['delete_files'] = [
'title' => $this
->t('Delete json files'),
'weight' => 100,
'url' => Url::fromRoute('entity.fac_config.delete_files', [
'fac_config_id' => $entity
->id(),
]),
];
return $operations;
}