public function AdminToolbarToolsHelper::getRebuildEntityTypes in Admin Toolbar 3.x
Same name and namespace in other branches
- 8.2 admin_toolbar_tools/src/AdminToolbarToolsHelper.php \Drupal\admin_toolbar_tools\AdminToolbarToolsHelper::getRebuildEntityTypes()
Gets an array of entity types that should trigger a menu rebuild.
Return value
array An array of entity machine names.
File
- admin_toolbar_tools/
src/ AdminToolbarToolsHelper.php, line 55
Class
- AdminToolbarToolsHelper
- Admin Toolbar Tools helper service.
Namespace
Drupal\admin_toolbar_toolsCode
public function getRebuildEntityTypes() {
$types = [
'menu',
];
$content_entities = $this
->getBundleableEntitiesList();
$types = array_merge($types, array_column($content_entities, 'content_entity_bundle'));
return $types;
}