You are here

interface OnlyOneAdminToolbarInterface in Allow a content type only once (Only One) 8

Interface OnlyOneAdminToolbarInterface.

Hierarchy

Expanded class hierarchy of OnlyOneAdminToolbarInterface

All classes that implement OnlyOneAdminToolbarInterface

File

modules/onlyone_admin_toolbar/src/OnlyOneAdminToolbarInterface.php, line 8

Namespace

Drupal\onlyone_admin_toolbar
View source
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);

}

Members

Namesort descending Modifiers Type Description Overrides
OnlyOneAdminToolbarInterface::rebuildMenu public function Rebuild the menu to change the menu label in the Admin Toolbar module. 1