CustomStrings

String translator using overrides from variables. This is a high performance way to provide a handful of string replacements. See settings.php for examples. Hierarchy class \Drupal\Core\StringTranslation\Translator\StaticTranslation implements TranslatorInterfaceclass \Drupal\Core\StringTranslation\Translator\CustomStrings File core/lib/Drupal/Core/StringTranslation/Translator/CustomStrings.php, line 13 Namespace Drupal\Core\StringTranslation\Translator Members Name Modifiers Typ

CustomPageExceptionHtmlSubscriber::__construct

public CustomPageExceptionHtmlSubscriber::__construct(ConfigFactoryInterface $config_factory, HttpKernelInterface $http_kernel, LoggerInterface $logger, RedirectDestinationInterface $redirect_destination, UrlMatcherInterface $access_unaware_router, AccessManagerInterface $access_manager) Constructs a new CustomPageExceptionHtmlSubscriber. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. \Symfony\Component\HttpKernel\HttpKernelInterface $http_ker

CustomPageExceptionHtmlSubscriber::on404

public CustomPageExceptionHtmlSubscriber::on404(GetResponseForExceptionEvent $event) Handles a 404 error for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. Overrides DefaultExceptionHtmlSubscriber::on404 File core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 78 Class CustomPageExceptionHtmlSubscriber Exception subscriber for handling core custom HTML error pages. Namespace Drupal\Core\EventS

CustomPageExceptionHtmlSubscriber::on403

public CustomPageExceptionHtmlSubscriber::on403(GetResponseForExceptionEvent $event) Handles a 403 error for HTML. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. Overrides DefaultExceptionHtmlSubscriber::on403 File core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 68 Class CustomPageExceptionHtmlSubscriber Exception subscriber for handling core custom HTML error pages. Namespace Drupal\Core\EventS

CustomPageExceptionHtmlSubscriber::makeSubrequestToCustomPath

protected CustomPageExceptionHtmlSubscriber::makeSubrequestToCustomPath(GetResponseForExceptionEvent $event, $custom_path, $status_code) Makes a subrequest to retrieve the custom error page. Parameters \Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process. string $custom_path: The custom path to which to make a subrequest for this error message. int $status_code: The status code for the error being handled. File core/lib/Drupal/Core/EventSubscriber/Custo

CustomPageExceptionHtmlSubscriber::getPriority

protected static CustomPageExceptionHtmlSubscriber::getPriority() Specifies the priority of all listeners in this class. The default priority is 1, which is very low. To have listeners that have a "first attempt" at handling exceptions return a higher priority. Return value int The event priority of this subscriber. Overrides DefaultExceptionHtmlSubscriber::getPriority File core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 61 Class CustomPageExceptionHtmlSubs

CustomPageExceptionHtmlSubscriber::$configFactory

The configuration factory. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 27 Class CustomPageExceptionHtmlSubscriber Exception subscriber for handling core custom HTML error pages. Namespace Drupal\Core\EventSubscriber Code protected $configFactory;

CustomPageExceptionHtmlSubscriber::$accessManager

The access manager. Type: \Drupal\Core\Access\AccessManagerInterface File core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 34 Class CustomPageExceptionHtmlSubscriber Exception subscriber for handling core custom HTML error pages. Namespace Drupal\Core\EventSubscriber Code protected $accessManager;

CustomPageExceptionHtmlSubscriber

Exception subscriber for handling core custom HTML error pages. Hierarchy class \Drupal\Core\EventSubscriber\HttpExceptionSubscriberBase implements EventSubscriberInterfaceclass \Drupal\Core\EventSubscriber\DefaultExceptionHtmlSubscriberclass \Drupal\Core\EventSubscriber\CustomPageExceptionHtmlSubscriber File core/lib/Drupal/Core/EventSubscriber/CustomPageExceptionHtmlSubscriber.php, line 20 Namespace Drupal\Core\EventSubscriber Members Name Modifiers Type Description Custom

CurrentRouteMatch::__construct

public CurrentRouteMatch::__construct(RequestStack $request_stack) Constructs a CurrentRouteMatch object. Parameters \Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack. File core/lib/Drupal/Core/Routing/CurrentRouteMatch.php, line 33 Class CurrentRouteMatch Default object for current_route_match service. Namespace Drupal\Core\Routing Code public function __construct(RequestStack $request_stack) { $this->requestStack = $request_stack; $this->rout