MenuForm::$entityQueryFactory

The factory for entity queries. Type: \Drupal\Core\Entity\Query\QueryFactory File core/modules/menu_ui/src/MenuForm.php, line 31 Class MenuForm Base form for menu edit forms. Namespace Drupal\menu_ui Code protected $entityQueryFactory;

MenuForm

Base form for menu edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\menu_ui\MenuForm File core/modules/menu_ui/src/MenuForm.php, line 24 Namespace Drupal\menu_ui Members Name Modifiers Type Descript

MenuDeleteForm::__construct

public MenuDeleteForm::__construct(MenuLinkManagerInterface $menu_link_manager, Connection $connection) Constructs a new MenuDeleteForm. Parameters \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager: The menu link manager. \Drupal\Core\Database\Connection $connection: The database connection. File core/modules/menu_ui/src/Form/MenuDeleteForm.php, line 38 Class MenuDeleteForm Defines a confirmation form for deletion of a custom menu. Namespace Drupal\menu_ui\Form Code public

MenuDeleteForm::submitForm

public MenuDeleteForm::submitForm(array &$form, FormStateInterface $form_state) This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state can be updated, this way the subsequently invoked handlers can retrieve a regular entity object to act on. Generally this method should not be overridden unless th

MenuDeleteForm::logDeletionMessage

protected MenuDeleteForm::logDeletionMessage() Logs a message about the deleted entity. Overrides EntityDeleteFormTrait::logDeletionMessage File core/modules/menu_ui/src/Form/MenuDeleteForm.php, line 69 Class MenuDeleteForm Defines a confirmation form for deletion of a custom menu. Namespace Drupal\menu_ui\Form Code protected function logDeletionMessage() { $this->logger('menu')->notice('Deleted custom menu %title and all its menu links.', array('%title' => $this->entity-

MenuDeleteForm::getDescription

public MenuDeleteForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides EntityConfirmFormBase::getDescription File core/modules/menu_ui/src/Form/MenuDeleteForm.php, line 56 Class MenuDeleteForm Defines a confirmation form for deletion of a custom menu. Namespace Drupal\menu_ui\Form Code public function getDescription() { $caption = ''; $num_links = $this->menuLinkManager->countMenuLinks($this->entity

MenuDeleteForm::create

public static MenuDeleteForm::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 service c

MenuDeleteForm::$menuLinkManager

The menu link manager. Type: \Drupal\Core\Menu\MenuLinkManagerInterface File core/modules/menu_ui/src/Form/MenuDeleteForm.php, line 21 Class MenuDeleteForm Defines a confirmation form for deletion of a custom menu. Namespace Drupal\menu_ui\Form Code protected $menuLinkManager;

MenuDeleteForm::$connection

The database connection. Type: \Drupal\Core\Database\Connection File core/modules/menu_ui/src/Form/MenuDeleteForm.php, line 28 Class MenuDeleteForm Defines a confirmation form for deletion of a custom menu. Namespace Drupal\menu_ui\Form Code protected $connection;

MenuDeleteForm

Defines a confirmation form for deletion of a custom menu. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\EntityConfirmFormBase implements ConfirmFormInterfaceclass \Drupal\Core\Entity\EntityDeleteForm uses EntityD