public function OnlyOneAdminToolbarInterface::rebuildMenu in Allow a content type only once (Only One) 8
Rebuild the menu to change the menu label in the Admin Toolbar module.
The menu will be rebuilded if the content type is configured to have only one node.
Parameters
string $content_type: The content type machine name.
1 method overrides OnlyOneAdminToolbarInterface::rebuildMenu()
- OnlyOneAdminToolbar::rebuildMenu in modules/
onlyone_admin_toolbar/ src/ OnlyOneAdminToolbar.php - Rebuild the menu to change the menu label in the Admin Toolbar module.
File
- modules/
onlyone_admin_toolbar/ src/ OnlyOneAdminToolbarInterface.php, line 19
Class
- OnlyOneAdminToolbarInterface
- Interface OnlyOneAdminToolbarInterface.
Namespace
Drupal\onlyone_admin_toolbarCode
public function rebuildMenu($content_type);