UserAgent::getBestMatchingLangcode

public static UserAgent::getBestMatchingLangcode($http_accept_language, $langcodes, $mappings = array()) Identifies user agent language from the Accept-language HTTP header. The algorithm works as follows: map user agent language codes to available language codes. order all user agent language codes by qvalue from high to low. add generic user agent language codes if they aren't already specified but with a slightly lower qvalue. find the most specific available language code with the highest q

MenuListBuilder

Defines a class to build a listing of menu entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\menu_ui\MenuListBuilder See also \Drupal\system\Entity\Menu menu_entity_info() File core/modules/menu_ui/src/MenuListBuilder.php, line 14 Namespace D

ProcessedText

Provides a processed text render element. Plugin annotation @RenderElement("processed_text") Hierarchy class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterfaceclass \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Render\Element\RenderElement implements ElementInterfaceclass \Drupal\filter\Element\ProcessedText File core/modules/filter/src/Element/ProcessedText.php, line 17 N

FormState

Stores information about the state of a form. Hierarchy class \Drupal\Core\Form\FormState implements FormStateInterface uses FormStateValuesTrait File core/lib/Drupal/Core/Form/FormState.php, line 12 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormState::$always_process protected property If TRUE and the method is GET, a form_id is not necessary. FormState::$anyErrors protected static property Tracks if any errors have been set on any form.

MenuTreeStorage::rebuild

public MenuTreeStorage::rebuild(array $definitions) Rebuilds the stored menu link definitions. Links that saved by passing definitions into this method must be included on all future calls, or they will be purged. This allows for automatic cleanup e.g. when modules are uninstalled. Parameters array $definitions: The new menu link definitions. Overrides MenuTreeStorageInterface::rebuild File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 144 Class MenuTreeStorage Provides a menu tree

BlockForm::submitForm

public BlockForm::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 the ent

EntityTypeManager

Manages entity type plugin definitions. Each entity type definition array is set in the entity type's annotation and altered by hook_entity_type_alter(). Do not use hook_entity_type_alter() hook to add information to entity types, unless one of the following is true: You are filling in default values. You need to dynamically add information only in certain circumstances. Your hook needs to run after hook_entity_type_build() implementations. Use hook_entity_type_build() instead in all other ca

RegisterForm::save

public RegisterForm::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 operatio

Merge

SQLite implementation of \Drupal\Core\Database\Query\Merge. Hierarchy class \Drupal\Core\Database\Query\Query implements PlaceholderInterfaceclass \Drupal\Core\Database\Query\Merge implements ConditionInterface uses QueryConditionTraitclass \Drupal\Core\Database\Driver\sqlite\Merge File core/lib/Drupal/Core/Database/Driver/sqlite/Merge.php, line 10 Namespace Drupal\Core\Database\Driver\sqlite Members Name Modifiers Type Description Merge::$conditionTable protected proper

theme_render_and_autoescape

theme_render_and_autoescape($arg) Escapes and renders variables for theme functions. This method is used in theme functions to ensure that the result is safe for output inside HTML fragments. This mimics the behavior of the auto-escape functionality in Twig. Note: This function should be kept in sync with \Drupal\Core\Template\TwigExtension::escapeFilter(). @todo Discuss deprecating this in https://www.drupal.org/node/2575081. @todo Refactor this to keep it in sync with Twig filtering in https: