onlyone-8.x-1.x-dev/modules/onlyone_admin_toolbar/src/OnlyOneAdminToolbarInterface.php
modules/onlyone_admin_toolbar/src/OnlyOneAdminToolbarInterface.php
<?php
namespace Drupal\onlyone_admin_toolbar;
/**
* Defines the OnlyOneAdminToolbarInterface interface.
*
* Provides a contract for classes implementing functionality related to
* rebuilding menu in the Admin Toolbar module base on configured content types.
*/
interface OnlyOneAdminToolbarInterface {
/**
* 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.
*
* @param string $content_type
* The content type machine name.
*/
public function rebuildMenu($content_type);
}
