InaccessibleMenuLink

A menu link plugin for wrapping another menu link, in sensitive situations. Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Menu\MenuLinkBase implements MenuLinkInterfaceclass \Drupal\Core\Menu\InaccessibleMenuLink See also \Drupal\Core\Menu\DefaultMenuLinkTreeManipulators::checkAccess() File core/lib/Drupa

ImportForm::__construct

public ImportForm::__construct(ModuleHandlerInterface $module_handler, ConfigurableLanguageManagerInterface $language_manager) Constructs a form for language import. Parameters \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service. \Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The configurable language manager. File core/modules/locale/src/Form/ImportForm.php, line 55 Class ImportForm Form constructor for the translation impor

ImportForm::validateForm

public ImportForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/locale/src/Form/ImportForm.php, line 156 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code public function validat

ImportForm::submitForm

public ImportForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/locale/src/Form/ImportForm.php, line 168 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code public function submit

ImportForm::getFormId

public ImportForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/locale/src/Form/ImportForm.php, line 63 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code public function getFormId() { return 'locale_translate_import_form'; }

ImportForm::create

public static ImportForm::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 conta

ImportForm::buildForm

public ImportForm::buildForm(array $form, FormStateInterface $form_state) Form constructor for the translation import screen. Overrides FormInterface::buildForm File core/modules/locale/src/Form/ImportForm.php, line 70 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code public function buildForm(array $form, FormStateInterface $form_state) { $languages = $this->languageManager->getLanguages(); // Initialize a language list t

ImportForm::$moduleHandler

The module handler service. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/locale/src/Form/ImportForm.php, line 29 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code protected $moduleHandler;

ImportForm::$languageManager

The configurable language manager. Type: \Drupal\language\ConfigurableLanguageManagerInterface File core/modules/locale/src/Form/ImportForm.php, line 36 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code protected $languageManager;

ImportForm::$file

Uploaded file entity. Type: \Drupal\file\Entity\File File core/modules/locale/src/Form/ImportForm.php, line 22 Class ImportForm Form constructor for the translation import screen. Namespace Drupal\locale\Form Code protected $file;