Loading admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ abstract class AdminToolbarSearchTestBase extends WebDriverTestBase { protected $userWithAccess; /** * A test user without the 'Use Admin Toolbar search' permission.. * A test user without the 'Use Admin Toolbar search' permission. * * @var \Drupal\user\UserInterface */ Loading admin_toolbar_tools/src/AdminToolbarToolsHelper.php +12 −1 Original line number Diff line number Diff line Loading @@ -163,9 +163,20 @@ class AdminToolbarToolsHelper { * * @return array<int, mixed> * An array of entity machine names. * * @see admin_toolbar_tools_entity_insert() * @see admin_toolbar_tools_entity_update() * @see admin_toolbar_tools_entity_delete() */ public function getRebuildEntityTypes() { $types = ['menu']; // The entity types that should trigger a menu rebuild when created, // updated or deleted. Add supported config entity types which will get // merged with bundleable entity types. $types = [ 'menu', 'user_role', 'view', ]; $content_entities = $this->getBundleableEntitiesList(); $types = array_merge($types, array_column($content_entities, 'content_entity_bundle')); return $types; Loading Loading
admin_toolbar_search/tests/src/FunctionalJavascript/AdminToolbarSearchTestBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ abstract class AdminToolbarSearchTestBase extends WebDriverTestBase { protected $userWithAccess; /** * A test user without the 'Use Admin Toolbar search' permission.. * A test user without the 'Use Admin Toolbar search' permission. * * @var \Drupal\user\UserInterface */ Loading
admin_toolbar_tools/src/AdminToolbarToolsHelper.php +12 −1 Original line number Diff line number Diff line Loading @@ -163,9 +163,20 @@ class AdminToolbarToolsHelper { * * @return array<int, mixed> * An array of entity machine names. * * @see admin_toolbar_tools_entity_insert() * @see admin_toolbar_tools_entity_update() * @see admin_toolbar_tools_entity_delete() */ public function getRebuildEntityTypes() { $types = ['menu']; // The entity types that should trigger a menu rebuild when created, // updated or deleted. Add supported config entity types which will get // merged with bundleable entity types. $types = [ 'menu', 'user_role', 'view', ]; $content_entities = $this->getBundleableEntitiesList(); $types = array_merge($types, array_column($content_entities, 'content_entity_bundle')); return $types; Loading