HttpExceptionSubscriberBase

Utility base class for exception subscribers. A subscriber may extend this class and implement getHandledFormats() to indicate which request formats it will respond to. Then implement an on*() method for any error code (HTTP response code) that should be handled. For example, to handle 404 Not Found messages add a method: public function on404(GetResponseForExceptionEvent $event) {} That method should then call $event->setResponse() to set the response object for the exception. Alternative

ProxyBuilder::build

public ProxyBuilder::build($class_name, $proxy_class_name = '') Builds a proxy class string. Parameters string $class_name: The class name of the actual service. string $proxy_class_name: (optional) The class name of the proxy service. Return value string The full string with namespace class and methods. File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 57 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuil

DbUpdateController::triggerBatch

protected DbUpdateController::triggerBatch(Request $request) Starts the database update batch process. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. File core/modules/system/src/Controller/DbUpdateController.php, line 568 Class DbUpdateController Controller routines for database update routes. Namespace Drupal\system\Controller Code protected function triggerBatch(Request $request) { $maintenance_mode = $this->state->get('system.mai

RouteSubscriberBase

Provides a base implementation for RouteSubscriber. Hierarchy class \Drupal\Core\Routing\RouteSubscriberBase implements EventSubscriberInterface File core/lib/Drupal/Core/Routing/RouteSubscriberBase.php, line 11 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RouteSubscriberBase::alterRoutes abstract protected function Alters existing routes for a specific collection. RouteSubscriberBase::getSubscribedEvents public static function Returns an

DeleteForm

Provides the comment delete confirmation form. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityConfirmFormBase implements

RESPONSIVE_PRIORITY_LOW

A responsive table class; only show table cell on wide devices. Indicates that a column has low priority and thus can be hidden on narrow and medium viewports and shown on wide devices (i.e. desktops). Related topics Content markers Markers used by mark.html.twig and node_mark() to designate content. File core/includes/theme.inc, line 66 The theme system, which controls the output of Drupal. Code const RESPONSIVE_PRIORITY_LOW = 'priority-low';

TranslationInterface

Interface for the translation.manager translation service. Hierarchy interface \Drupal\Core\StringTranslation\TranslationInterface Related topics Internationalization Internationalization and translation File core/lib/Drupal/Core/StringTranslation/TranslationInterface.php, line 10 Namespace Drupal\Core\StringTranslation Members Name Modifiers Type Description TranslationInterface::formatPlural public function Formats a string containing a count of items. TranslationI

BlockContentViewBuilder

View builder handler for custom blocks. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\block_content\BlockContentViewBuilder File core/modules/block_content/src/BlockContentViewBuilder.php, line 12 Namespace Drupal\block_content Members Name Modifiers Type Description BlockContentViewBuilder::al

UpdateManagerUpdate

Configure update settings for this site. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\update\Form\UpdateManagerUpdate File core/modules/update/src/Form/UpdateManagerUpdate.php, line 15 Namespace Drupal\update\Form Members Name Modifiers Type Description DependencySerializ

EntityOperations::entityUpdate

public EntityOperations::entityUpdate(EntityInterface $entity) Hook bridge. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity that was just saved. See also hook_entity_update() File core/modules/content_moderation/src/EntityOperations.php, line 129 Class EntityOperations Defines a class for reacting to entity events. Namespace Drupal\content_moderation Code public function entityUpdate(EntityInterface $entity) { if ($this->moderationInfo->isModeratedEntity($e