LanguageConfigCollectionNameTrait::createConfigCollectionName

protected LanguageConfigCollectionNameTrait::createConfigCollectionName($langcode) Creates a configuration collection name based on a language code. Parameters string $langcode: The language code. Return value string The configuration collection name for a language code. File core/modules/language/src/Config/LanguageConfigCollectionNameTrait.php, line 19 Class LanguageConfigCollectionNameTrait Provides a common trait for working with language override collection names. Namespace Drupa

LanguageConfigCollectionNameTrait

Provides a common trait for working with language override collection names. Hierarchy trait \Drupal\language\Config\LanguageConfigCollectionNameTrait File core/modules/language/src/Config/LanguageConfigCollectionNameTrait.php, line 8 Namespace Drupal\language\Config Members Name Modifiers Type Description LanguageConfigCollectionNameTrait::createConfigCollectionName protected function Creates a configuration collection name based on a language code. LanguageConfigColl

LanguageAddForm::validatePredefined

public LanguageAddForm::validatePredefined($form, FormStateInterface $form_state) Element specific validator for the Add language button. File core/modules/language/src/Form/LanguageAddForm.php, line 128 Class LanguageAddForm Controller for language addition forms. Namespace Drupal\language\Form Code public function validatePredefined($form, FormStateInterface $form_state) { $langcode = $form_state->getValue('predefined_langcode'); if ($langcode == 'custom') { $form_state-&g

LanguageAddForm::validateCustom

public LanguageAddForm::validateCustom(array $form, FormStateInterface $form_state) Validates the language addition form on custom language button. File core/modules/language/src/Form/LanguageAddForm.php, line 110 Class LanguageAddForm Controller for language addition forms. Namespace Drupal\language\Form Code public function validateCustom(array $form, FormStateInterface $form_state) { if ($form_state->getValue('predefined_langcode') == 'custom') { $langcode = $form_state->

LanguageAddForm::save

public LanguageAddForm::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 opera

LanguageAddForm::getFormId

public LanguageAddForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides EntityForm::getFormId File core/modules/language/src/Form/LanguageAddForm.php, line 18 Class LanguageAddForm Controller for language addition forms. Namespace Drupal\language\Form Code public function getFormId() { // @todo Remove in favour of base method. return 'language_admin_add_form'; }

LanguageAddForm::form

public LanguageAddForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/language/src/Form/LanguageAddForm.php, line 26 Class LanguageAddForm Controller for language addition forms. Namespace Drupal\language\Form Code public function form(array $form, FormStateInterface $form_state) { $form['#title']

LanguageAddForm::copyFormValuesToEntity

protected LanguageAddForm::copyFormValuesToEntity(EntityInterface $entity, array $form, FormStateInterface $form_state) Copies top-level form values to entity properties This should not change existing entity properties that are not being edited by this form. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the current form should operate upon. array $form: A nested array of form elements comprising the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state

LanguageAddForm::actions

public LanguageAddForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/language/src/Form/LanguageAddForm.php, line 102 Class LanguageAddForm Controller for language addition forms. Namespace Drupal\language\Form Code public function actions(array $form, FormStateInterface $form

LanguageAddForm

Controller for language addition forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\language\Form\LanguageFormBaseclass \Drupal\language\Form\LanguageAddForm File core/modules/language/src/Form/LanguageAddForm.php, li