EntityFormInterface::getEntityFromRouteMatch

public EntityFormInterface::getEntityFromRouteMatch(RouteMatchInterface $route_match, $entity_type_id) Determines which entity will be used by this form from a RouteMatch object. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The route match. string $entity_type_id: The entity type identifier. Return value \Drupal\Core\Entity\EntityInterface The entity object as determined from the passed-in route match. File core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 71 C

LanguageManager::$languages

A static cache of translated language lists. Array of arrays to cache the result of self::getLanguages() keyed by the language the list is translated to (first level) and the flags provided to the method (second level). Type: \Drupal\Core\Language\LanguageInterface[] See also \Drupal\Core\Language\LanguageManager::getLanguages() File core/lib/Drupal/Core/Language/LanguageManager.php, line 26 Class LanguageManager Class responsible for providing language support on language-unaware sites.

forum_entity_bundle_field_info_alter

forum_entity_bundle_field_info_alter(&$fields, EntityTypeInterface $entity_type, $bundle) Implements hook_entity_bundle_field_info_alter(). File core/modules/forum/forum.module, line 139 Provides discussion forums. Code function forum_entity_bundle_field_info_alter(&$fields, EntityTypeInterface $entity_type, $bundle) { if ($entity_type->id() == 'node' && !empty($fields['taxonomy_forums'])) { $fields['taxonomy_forums']->addConstraint('ForumLeaf', []); } }

EntityDefinitionUpdateManager::updateFieldStorageDefinition

public EntityDefinitionUpdateManager::updateFieldStorageDefinition(FieldStorageDefinitionInterface $storage_definition) Applies any change performed to the passed field storage definition. Parameters \Drupal\Core\Field\FieldStorageDefinitionInterface $storage_definition: The field storage definition. Overrides EntityDefinitionUpdateManagerInterface::updateFieldStorageDefinition File core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php, line 183 Class EntityDefinitionUpdateManager

RegisterEntityResolversCompilerPass

Adds services tagged 'normalizer' and 'encoder' to the Serializer. Hierarchy class \Drupal\serialization\RegisterEntityResolversCompilerPass implements CompilerPassInterface File core/modules/serialization/src/RegisterEntityResolversCompilerPass.php, line 12 Namespace Drupal\serialization Members Name Modifiers Type Description RegisterEntityResolversCompilerPass::process public function Adds services to the Serializer. Overrides CompilerPassInterface::process Register

editor_filter_xss

editor_filter_xss($html, FilterFormatInterface $format = NULL, FilterFormatInterface $original_format = NULL) Applies text editor XSS filtering. Parameters string $html: The HTML string that will be passed to the text editor. \Drupal\filter\FilterFormatInterface|null $format: The text format whose text editor will be used or NULL if the previously defined text format is now disabled. \Drupal\filter\FilterFormatInterface $original_format|null: (optional) The original text format (i.e. when swit

install_run_tasks

install_run_tasks(&$install_state) Runs all tasks for the current installation request. In the case of an interactive installation, all tasks will be attempted until one is reached that has output which needs to be displayed to the user, or until a page redirect is required. Otherwise, tasks will be attempted until the installation is finished. Parameters $install_state: An array of information about the current installation state. This is passed along to each task, so it can be modified i

_user_cancel_session_regenerate

_user_cancel_session_regenerate() Implements callback_batch_finished(). Finished batch processing callback for cancelling a user account. See also user_cancel() File core/modules/user/user.module, line 776 Enables the user registration and login system. Code function _user_cancel_session_regenerate() { // Regenerate the users session instead of calling session_destroy() as we // want to preserve any messages that might have been set. \Drupal::service('session')->migrate(); }

UserSession::__construct

public UserSession::__construct(array $values = array()) Constructs a new user session. Parameters array $values: Array of initial values for the user session. File core/lib/Drupal/Core/Session/UserSession.php, line 76 Class UserSession An implementation of the user account interface for the global user. Namespace Drupal\Core\Session Code public function __construct(array $values = array()) { foreach ($values as $key => $value) { $this->$key = $value; } }

RouteProcessorCurrent::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/RouteProcessor/RouteProcessorCurrent.php, line 19 Class RouteProcessorCurrent Provides a route processor to replace <current>. Namespace Drupal\Core\RouteProcessor Code protected $routeMatch;