MenuLinkContentInterface::getTitle

public MenuLinkContentInterface::getTitle() Gets the title of the menu link. Return value string The title of the link. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 24 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getTitle();

MenuLinkContentInterface::getParentId

public MenuLinkContentInterface::getParentId() Gets the plugin ID of the parent menu link. Return value string A plugin ID, or empty string if this link is at the top level. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 80 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getParentId();

MenuLinkContentInterface::getMenuName

public MenuLinkContentInterface::getMenuName() Gets the menu name of the custom menu link. Return value string The menu ID. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 40 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getMenuName();

MenuLinkContentInterface::getDescription

public MenuLinkContentInterface::getDescription() Gets the description of the menu link for the UI. Return value string The description to use on admin pages or as a title attribute. File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 48 Class MenuLinkContentInterface Defines an interface for custom menu links. Namespace Drupal\menu_link_content Code public function getDescription();

MenuLinkContentInterface

Defines an interface for custom menu links. Hierarchy interface \Drupal\Core\Entity\ContentEntityInterface extends \Traversable; interface \Drupal\Core\Entity\EntityChangedInterfaceinterface \Drupal\menu_link_content\MenuLinkContentInterface File core/modules/menu_link_content/src/MenuLinkContentInterface.php, line 11 Namespace Drupal\menu_link_content Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. Cacheab

MenuLinkContentForm::__construct

public MenuLinkContentForm::__construct(EntityManagerInterface $entity_manager, MenuParentFormSelectorInterface $menu_parent_selector, LanguageManagerInterface $language_manager, PathValidatorInterface $path_validator) Constructs a MenuLinkContentForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Menu\MenuParentFormSelectorInterface $menu_parent_selector: The menu parent form selector service. \Drupal\Core\Language\LanguageManag

MenuLinkContentForm::save

public MenuLinkContentForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the o

MenuLinkContentForm::form

public MenuLinkContentForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/menu_link_content/src/Form/MenuLinkContentForm.php, line 72 Class MenuLinkContentForm Provides a form to add/update content menu links. Namespace Drupal\menu_link_content\Form Code public function form(array $form, Form

MenuLinkContentForm::create

public static MenuLinkContentForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The serv

MenuLinkContentForm::buildEntity

public MenuLinkContentForm::buildEntity(array $form, FormStateInterface $form_state) Builds an updated entity object based upon the submitted form values. For building the updated entity object the form's entity is cloned and the submitted form values are copied to entity properties. The form's entity remains unchanged. Parameters array $form: A nested array form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value \Drupal