You are here

interface MenuLinkContentServiceInterface in Menu Item Extras 8.2

Interface MenuLinkContentHelperInterface.

@package Drupal\menu_item_extras\Service

Hierarchy

Expanded class hierarchy of MenuLinkContentServiceInterface

All classes that implement MenuLinkContentServiceInterface

3 files declare their use of MenuLinkContentServiceInterface
ConfirmClearMenuForm.php in src/Form/ConfirmClearMenuForm.php
MenuController.php in src/Controller/MenuController.php
MenuItemExtrasCommands.php in src/Commands/MenuItemExtrasCommands.php

File

src/Service/MenuLinkContentServiceInterface.php, line 13

Namespace

Drupal\menu_item_extras\Service
View source
interface MenuLinkContentServiceInterface {

  /**
   * Update menu items.
   *
   * @param string $menu_id
   *   Menu id is a bundle for menu items that required to be updated.
   * @param bool $extras_enabled
   *   Flag of enabled functionality.
   *
   * @return bool
   *   Success or failed result of update.
   */
  public function updateMenuItemsBundle($menu_id, $extras_enabled = TRUE);

  /**
   * Update menu link item.
   *
   * @param \Drupal\menu_link_content\MenuLinkContentInterface $item
   *   Menu item that required to be updated.
   * @param bool $extras_enabled
   *   Flag of enabled functionality.
   * @param bool $save
   *   Flag of saving after update.
   */
  public function updateMenuItemBundle(MenuLinkContentInterface $item, $extras_enabled = TRUE, $save = FALSE);

  /**
   * Cleanups all field that added by entity bundle.
   *
   * @param \Drupal\Core\Entity\ContentEntityInterface $entity
   *   Entity for manipulating.
   */
  public function cleanupFields(ContentEntityInterface $entity);

  /**
   * Runs entity definition updates for menu_link_content entity.
   */
  public function doEntityUpdate();

  /**
   * Clears special menu or all menus extra data.
   *
   * @param string $menu_id
   *   Machine menu name for clearing.
   */
  public function clearMenuData($menu_id = 'all');

  /**
   * Runs field `bundle` updates for entity.
   */
  public function updateMenuLinkContentBundle();

}

Members

Namesort descending Modifiers Type Description Overrides
MenuLinkContentServiceInterface::cleanupFields public function Cleanups all field that added by entity bundle. 1
MenuLinkContentServiceInterface::clearMenuData public function Clears special menu or all menus extra data. 1
MenuLinkContentServiceInterface::doEntityUpdate public function Runs entity definition updates for menu_link_content entity. 1
MenuLinkContentServiceInterface::updateMenuItemBundle public function Update menu link item. 1
MenuLinkContentServiceInterface::updateMenuItemsBundle public function Update menu items. 1
MenuLinkContentServiceInterface::updateMenuLinkContentBundle public function Runs field `bundle` updates for entity. 1