Issue #1995046 by pfrenssen, andypost, tim.plunkett: BlockListController doesn't call parent::getOperations() and so 'delete' is the default dropbutton operation.
parent
3cf100dfcd
commit
129031e49d
|
@ -236,18 +236,11 @@ class BlockListController extends ConfigEntityListController implements FormInte
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function getOperations(EntityInterface $entity) {
|
public function getOperations(EntityInterface $entity) {
|
||||||
$uri = $entity->uri();
|
$operations = parent::getOperations($entity);
|
||||||
$operations = array();
|
|
||||||
$operations['configure'] = array(
|
if (isset($operations['edit'])) {
|
||||||
'title' => t('configure'),
|
$operations['edit']['title'] = t('Configure');
|
||||||
'href' => $uri['path'],
|
}
|
||||||
'options' => $uri['options'],
|
|
||||||
);
|
|
||||||
$operations['delete'] = array(
|
|
||||||
'title' => t('delete'),
|
|
||||||
'href' => $uri['path'] . '/delete',
|
|
||||||
'options' => $uri['options'],
|
|
||||||
);
|
|
||||||
|
|
||||||
return $operations;
|
return $operations;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,8 +36,7 @@ use Drupal\Core\Entity\EntityStorageControllerInterface;
|
||||||
* entity_keys = {
|
* entity_keys = {
|
||||||
* "id" = "id",
|
* "id" = "id",
|
||||||
* "label" = "label",
|
* "label" = "label",
|
||||||
* "uuid" = "uuid",
|
* "uuid" = "uuid"
|
||||||
* "status" = "status"
|
|
||||||
* }
|
* }
|
||||||
* )
|
* )
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue