Renderer::hasRenderContext

public Renderer::hasRenderContext() Checks whether a render context is active. This is useful only in very specific situations to determine whether the system is already capable of collecting bubbleable metadata. Normally it should not be necessary to be concerned about this. Return value bool TRUE if the renderer has a render context active, FALSE otherwise. Overrides RendererInterface::hasRenderContext File core/lib/Drupal/Core/Render/Renderer.php, line 561 Class Renderer Turns a render

Shortcut::postSave

public Shortcut::postSave(EntityStorageInterface $storage, $update = TRUE) Acts on a saved entity before the insert or update hook is invoked. Used after the entity is saved, but before invoking the insert or update hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. Parameters \Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object. bool $

ProcessedText::getInfo

public ProcessedText::getInfo() Returns the element properties for this element. Return value array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format. Overrides ElementInterface::getInfo File core/modules/filter/src/Element/ProcessedText.php, line 22 Class ProcessedText Provides a processed text render element. Namespace Drupal\filter\Element Code publ

DrupalKernelInterface::loadLegacyIncludes

public DrupalKernelInterface::loadLegacyIncludes() Helper method that loads legacy Drupal include files. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 141 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function loadLegacyIncludes();

FormValidator

Provides validation of form submissions. Hierarchy class \Drupal\Core\Form\FormValidator implements FormValidatorInterface uses StringTranslationTrait File core/lib/Drupal/Core/Form/FormValidator.php, line 17 Namespace Drupal\Core\Form Members Name Modifiers Type Description FormValidator::$csrfToken protected property The CSRF token generator to validate the form token. FormValidator::$formErrorHandler protected property The form error handler. FormValidator::

SpecialAttributesRouteSubscriber::onAlterRoutes

public SpecialAttributesRouteSubscriber::onAlterRoutes(RouteBuildEvent $event) Delegates the route altering to self::alterRoutes(). Parameters \Drupal\Core\Routing\RouteBuildEvent $event: The route build event. Overrides RouteSubscriberBase::onAlterRoutes File core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php, line 43 Class SpecialAttributesRouteSubscriber Provides a route subscriber which checks for invalid pattern variables. Namespace Drupal\Core\EventSubscrib

ContentTranslationRouteSubscriber::__construct

public ContentTranslationRouteSubscriber::__construct(ContentTranslationManagerInterface $content_translation_manager) Constructs a ContentTranslationRouteSubscriber object. Parameters \Drupal\content_translation\ContentTranslationManagerInterface $content_translation_manager: The content translation manager. File core/modules/content_translation/src/Routing/ContentTranslationRouteSubscriber.php, line 29 Class ContentTranslationRouteSubscriber Subscriber for entity translation routes. N

Number::validateNumber

public static Number::validateNumber(&$element, FormStateInterface $form_state, &$complete_form) Form element validation handler for #type 'number'. Note that #required is validated by _form_validate() already. File core/lib/Drupal/Core/Render/Element/Number.php, line 62 Class Number Provides a form element for numeric input, with special numeric validation. Namespace Drupal\Core\Render\Element Code public static function validateNumber(&$element, FormStateInterface $form_s

hook_help

hook_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) Provide online user help. By implementing hook_help(), a module can make documentation available to the user for the module as a whole, or for specific pages. Help for developers should usually be provided via function header comments in the code, or in special API example files. The page-specific help information provided by this hook appears in the Help block (provided by the core Help module), if the block is displ

ContentTranslationMetadataWrapper::setFieldOnlyIfTranslatable

protected ContentTranslationMetadataWrapper::setFieldOnlyIfTranslatable($field_name, $value) Updates a field value, only if the field is translatable. Parameters string $field_name: The name of the field. mixed $value: The field value to be set. File core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 144 Class ContentTranslationMetadataWrapper Base class for content translation metadata wrappers. Namespace Drupal\content_translation Code protected functio