MenuLinkResetForm::linkIsResettable

public MenuLinkResetForm::linkIsResettable(MenuLinkInterface $menu_link_plugin) Checks access based on whether the link can be reset. Parameters \Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin: The menu link plugin being checked. Return value \Drupal\Core\Access\AccessResultInterface The access result. File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 116 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\

MenuLinkResetForm::getQuestion

public MenuLinkResetForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 61 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getQuestion() { return $this->t('Are you sure you want to reset the l

MenuLinkResetForm::getFormId

public MenuLinkResetForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 54 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getFormId() { return 'menu_link_reset_confirm'; }

MenuLinkResetForm::getDescription

public MenuLinkResetForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ConfirmFormBase::getDescription File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 77 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getDescription() { return $this->t('Any customizations will be lost. This action cannot be u

MenuLinkResetForm::getConfirmText

public MenuLinkResetForm::getConfirmText() Returns a caption for the button that confirms the action. Return value string The form confirmation text. Overrides ConfirmFormBase::getConfirmText File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 84 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getConfirmText() { return $this->t('Reset'); }

MenuLinkResetForm::getCancelUrl

public MenuLinkResetForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ConfirmFormInterface::getCancelUrl File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 68 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code public function getCancelUrl() { return new Url('entity.menu.edit_form', array( 'menu' => $this

MenuLinkResetForm::create

public static MenuLinkResetForm::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 servic

MenuLinkResetForm::buildForm

public MenuLinkResetForm::buildForm(array $form, FormStateInterface $form_state, MenuLinkInterface $menu_link_plugin = NULL) Form constructor. 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 array The form structure. Overrides ConfirmFormBase::buildForm File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 91 Class MenuLinkResetForm Defines a confirmat

MenuLinkResetForm::$menuLinkManager

The menu link manager. Type: \Drupal\Core\Menu\MenuLinkManagerInterface File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 23 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code protected $menuLinkManager;

MenuLinkResetForm::$link

The menu link. Type: \Drupal\Core\Menu\MenuLinkInterface File core/modules/menu_ui/src/Form/MenuLinkResetForm.php, line 30 Class MenuLinkResetForm Defines a confirmation form for resetting a single modified menu link. Namespace Drupal\menu_ui\Form Code protected $link;