Loading src/Form/EcaForm.php +3 −3 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ class EcaForm extends EntityForm { 'weight' => 10, ]; } if ($eca->access('delete')) { if ($eca->access('delete') && empty($config_array['successors'])) { $operations['delete'] = [ 'title' => $this->t('Delete'), 'url' => Url::fromRoute("eca_cm.event.delete", [ Loading Loading @@ -319,7 +319,7 @@ class EcaForm extends EntityForm { 'weight' => 10, ]; } if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'condition')) { if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'condition') && empty($config_array['successors'])) { $operations['delete'] = [ 'title' => $this->t('Delete'), 'url' => Url::fromRoute("eca_cm.condition.delete", [ Loading Loading @@ -428,7 +428,7 @@ class EcaForm extends EntityForm { 'weight' => 10, ]; } if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'action')) { if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'action') && empty($config_array['successors'])) { $operations['delete'] = [ 'title' => $this->t('Delete'), 'url' => Url::fromRoute("eca_cm.action.delete", [ Loading src/Form/EcaPluginForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -471,7 +471,7 @@ abstract class EcaPluginForm implements FormInterface, ContainerInjectionInterfa '#button_type' => 'primary', '#weight' => 10, ]; if (!$plugin_is_new && !$is_used) { if (!$plugin_is_new && !$is_used && empty($config_array['successors'])) { $form['actions']['delete'] = [ '#type' => 'submit', '#value' => $this->t('Delete'), Loading Loading
src/Form/EcaForm.php +3 −3 Original line number Diff line number Diff line Loading @@ -219,7 +219,7 @@ class EcaForm extends EntityForm { 'weight' => 10, ]; } if ($eca->access('delete')) { if ($eca->access('delete') && empty($config_array['successors'])) { $operations['delete'] = [ 'title' => $this->t('Delete'), 'url' => Url::fromRoute("eca_cm.event.delete", [ Loading Loading @@ -319,7 +319,7 @@ class EcaForm extends EntityForm { 'weight' => 10, ]; } if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'condition')) { if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'condition') && empty($config_array['successors'])) { $operations['delete'] = [ 'title' => $this->t('Delete'), 'url' => Url::fromRoute("eca_cm.condition.delete", [ Loading Loading @@ -428,7 +428,7 @@ class EcaForm extends EntityForm { 'weight' => 10, ]; } if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'action')) { if ($eca->access('delete') && !EcaCm::configKeyIsUsed($eca, $id, 'action') && empty($config_array['successors'])) { $operations['delete'] = [ 'title' => $this->t('Delete'), 'url' => Url::fromRoute("eca_cm.action.delete", [ Loading
src/Form/EcaPluginForm.php +1 −1 Original line number Diff line number Diff line Loading @@ -471,7 +471,7 @@ abstract class EcaPluginForm implements FormInterface, ContainerInjectionInterfa '#button_type' => 'primary', '#weight' => 10, ]; if (!$plugin_is_new && !$is_used) { if (!$plugin_is_new && !$is_used && empty($config_array['successors'])) { $form['actions']['delete'] = [ '#type' => 'submit', '#value' => $this->t('Delete'), Loading