FormErrorHandler::handleFormErrors

public FormErrorHandler::handleFormErrors(array &$form, FormStateInterface $form_state) Handles form errors after form validation. 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 $this Overrides FormErrorHandlerInterface::handleFormErrors File core/lib/Drupal/Core/Form/FormErrorHandler.php, line 15 Class FormErrorHandler Handles form errors. Namespace Dr

AjaxResponseAttachmentsProcessor

Processes attachments of AJAX responses. Hierarchy class \Drupal\Core\Ajax\AjaxResponseAttachmentsProcessor implements AttachmentsResponseProcessorInterface See also \Drupal\Core\Ajax\AjaxResponse \Drupal\Core\Render\MainContent\AjaxRenderer File core/lib/Drupal/Core/Ajax/AjaxResponseAttachmentsProcessor.php, line 22 Namespace Drupal\Core\Ajax Members Name Modifiers Type Description AjaxResponseAttachmentsProcessor::$assetResolver protected property The asset resolver s

TermDeleteForm::getCancelUrl

public TermDeleteForm::getCancelUrl() Returns the route to go to if the user cancels the action. Return value \Drupal\Core\Url A URL object. Overrides ContentEntityDeleteForm::getCancelUrl File core/modules/taxonomy/src/Form/TermDeleteForm.php, line 17 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code public function getCancelUrl() { // The cancel URL is the vocabulary collection, terms have no global // list page.

ShortcutDeleteForm::getRedirectUrl

protected ShortcutDeleteForm::getRedirectUrl() Returns the URL where the user should be redirected after deletion. Return value \Drupal\Core\Url The redirect URL. Overrides EntityDeleteFormTrait::getRedirectUrl File core/modules/shortcut/src/Form/ShortcutDeleteForm.php, line 32 Class ShortcutDeleteForm Builds the shortcut link deletion form. Namespace Drupal\shortcut\Form Code protected function getRedirectUrl() { return $this->getCancelUrl(); }

TermDeleteForm::getDescription

public TermDeleteForm::getDescription() Returns additional text to display as a description. Return value string The form description. Overrides ContentEntityConfirmFormBase::getDescription File core/modules/taxonomy/src/Form/TermDeleteForm.php, line 33 Class TermDeleteForm Provides a deletion confirmation form for taxonomy term. Namespace Drupal\taxonomy\Form Code public function getDescription() { return $this->t('Deleting a term will delete all its children if there are any. T

ContentTranslationUpdatesManager

Provides the logic needed to update field storage definitions when needed. Hierarchy class \Drupal\content_translation\ContentTranslationUpdatesManager implements EventSubscriberInterface File core/modules/content_translation/src/ContentTranslationUpdatesManager.php, line 17 Namespace Drupal\content_translation Members Name Modifiers Type Description ContentTranslationUpdatesManager::$entityManager protected property The entity manager. ContentTranslationUpdatesManager

content_translation_entity_bundle_info_alter

content_translation_entity_bundle_info_alter(&$bundles) Implements hook_entity_bundle_info_alter(). File core/modules/content_translation/content_translation.module, line 163 Allows entities to be translated into different languages. Code function content_translation_entity_bundle_info_alter(&$bundles) { foreach ($bundles as $entity_type => &$info) { foreach ($info as $bundle => &$bundle_info) { $bundle_info['translatable'] = \Drupal::service('content_transla

Action

Defines an Action annotation object. Plugin Namespace: Plugin\Action For a working example, see \Drupal\node\Plugin\Action\UnpublishNode Hierarchy class \Drupal\Component\Annotation\Plugin implements AnnotationInterfaceclass \Drupal\Core\Annotation\Action See also \Drupal\Core\Action\ActionInterface \Drupal\Core\Action\ActionManager \Drupal\Core\Action\ActionBase Plugin API Related topics Annotations Annotations for class discovery and metadata description. File core/lib/Drupal/Core/Anno

hook_image_effect_info_alter

hook_image_effect_info_alter(&$effects) Alter the information provided in \Drupal\image\Annotation\ImageEffect. Parameters $effects: The array of image effects, keyed on the machine-readable effect name. Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/image/image.api.php, line 19 Hooks related to image styles and effects. Code function hook_image_effect_info_alter(&$effects) { // Override the Image module's 'Scale and Crop' effect l

ThemeManager::setActiveTheme

public ThemeManager::setActiveTheme(ActiveTheme $active_theme) Sets the current active theme manually. Note: This method should not be used in common cases, just in special cases like tests. Parameters \Drupal\Core\Theme\ActiveTheme $active_theme: The new active theme. Return value $this Overrides ThemeManagerInterface::setActiveTheme File core/lib/Drupal/Core/Theme/ThemeManager.php, line 119 Class ThemeManager Provides the default implementation of a theme manager. Namespace Drupal\C