Skip to content
Snippets Groups Projects
Commit 0d1ded22 authored by Jeff Geerling's avatar Jeff Geerling Committed by Chris Jansen
Browse files

Issue #2839984 by geerlingguy, phenaproxima: ID missing from ECK bundle types,...

Issue #2839984 by geerlingguy, phenaproxima: ID missing from ECK bundle types, causes notices with Lightning distribution
parent 83b4ea45
No related branches found
Tags 7.x-1.0-alpha4
No related merge requests found
......@@ -171,6 +171,7 @@ function eck_menu_local_actions_alter(&$local_actions) {
*/
foreach ($eck_types as $name => $type) {
$local_actions['eck.bundle.' . $type->id() . '.add'] = $defaults + [
'id' => 'eck.bundle.' . $type->id() . '.add',
'route_name' => 'eck.entity.' . $type->id() . '_type.add',
'title' => t('Add @label bundle', array('@label' => $type->label())),
'appears_on' => [
......@@ -181,6 +182,7 @@ function eck_menu_local_actions_alter(&$local_actions) {
if ($eckBundleInfo->entityTypeHasBundles($type->id())) {
$bundle_machine_names = $eckBundleInfo->getEntityTypeBundleMachineNames($type->id());
$local_actions['eck.' . $type->id() . '.add'] = $defaults + [
'id' => 'eck.' . $type->id() . '.add',
'title' => t('Add @label', array('@label' => $type->label())),
'appears_on' => [
'eck.entity.' . $type->id() . '.list',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment