Standard::filterXss

public static Standard::filterXss($html, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL) Filters HTML to prevent XSS attacks when a user edits it in a text editor. Should filter as minimally as possible, only to remove XSS attack vectors. Is only called when: loading a non-XSS-safe text editor for a $format that contains a filter preventing XSS attacks (a FilterInterface::TYPE_HTML_RESTRICTOR filter): if the output is safe, it should also be safe to edit. loading a

Standard filters

Filters implemented by the Filter module. File core/modules/filter/filter.module, line 444 Framework for handling the filtering of content. Functions Name Location Description filter_filter_secure_image_alter core/modules/filter/filter.module Implements hook_filter_secure_image_alter(). _filter_autop core/modules/filter/filter.module Converts line breaks into <p> and <br> in an intelligent fashion. _filter_html_escape core/modules/filter/filter.module Escape

Standard::filterXssDataAttributes

protected static Standard::filterXssDataAttributes($html) Applies a very permissive XSS/HTML filter to data-attributes. Parameters string $html: The string to apply the data-attributes filtering to. Return value string The filtered string. File core/modules/editor/src/EditorXssFilter/Standard.php, line 101 Class Standard Defines the standard text editor XSS filter. Namespace Drupal\editor\EditorXssFilter Code protected static function filterXssDataAttributes($html) { if (stristr($h

StackedRouteMatchInterface::getRouteMatchFromRequest

public StackedRouteMatchInterface::getRouteMatchFromRequest(Request $request) Returns a route match from a given request, if possible. Parameters \Symfony\Component\HttpFoundation\Request $request: The request. Return value \Drupal\Core\Routing\RouteMatchInterface|null THe matching route match, or NULL if there is no matching one. File core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php, line 45 Class StackedRouteMatchInterface Defines an interface for a stack of route matches.

StackedSessionHandlerPass

Provides a compiler pass for stacked session save handlers. Hierarchy class \Drupal\Core\DependencyInjection\Compiler\StackedSessionHandlerPass implements CompilerPassInterface File core/lib/Drupal/Core/DependencyInjection/Compiler/StackedSessionHandlerPass.php, line 12 Namespace Drupal\Core\DependencyInjection\Compiler Members Name Modifiers Type Description StackedSessionHandlerPass::process public function You can modify the container here before it is dumped to PHP c

StackedSessionHandlerPass::process

public StackedSessionHandlerPass::process(ContainerBuilder $container) You can modify the container here before it is dumped to PHP code. Parameters ContainerBuilder $container: Overrides CompilerPassInterface::process File core/lib/Drupal/Core/DependencyInjection/Compiler/StackedSessionHandlerPass.php, line 17 Class StackedSessionHandlerPass Provides a compiler pass for stacked session save handlers. Namespace Drupal\Core\DependencyInjection\Compiler Code public function process(Cont

StackedRouteMatchInterface::getParentRouteMatch

public StackedRouteMatchInterface::getParentRouteMatch() Returns the parent route match of the current. Return value \Drupal\Core\Routing\RouteMatchInterface|null The parent route match or NULL, if it the master route match. File core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php, line 34 Class StackedRouteMatchInterface Defines an interface for a stack of route matches. Namespace Drupal\Core\Routing Code public function getParentRouteMatch();

StackedRouteMatchInterface::getMasterRouteMatch

public StackedRouteMatchInterface::getMasterRouteMatch() Gets the master route match.. Return value \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php, line 26 Class StackedRouteMatchInterface Defines an interface for a stack of route matches. Namespace Drupal\Core\Routing Code public function getMasterRouteMatch();

StackedRouteMatchInterface::getCurrentRouteMatch

public StackedRouteMatchInterface::getCurrentRouteMatch() Gets the current route match. Return value \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php, line 19 Class StackedRouteMatchInterface Defines an interface for a stack of route matches. Namespace Drupal\Core\Routing Code public function getCurrentRouteMatch();

StackedRouteMatchInterface

Defines an interface for a stack of route matches. This could be for example used on exception pages. Hierarchy interface \Drupal\Core\Routing\RouteMatchInterfaceinterface \Drupal\Core\Routing\StackedRouteMatchInterface File core/lib/Drupal/Core/Routing/StackedRouteMatchInterface.php, line 12 Namespace Drupal\Core\Routing Members Name Modifiers Type Description RouteMatchInterface::getParameter public function Returns the processed value of a named route parameter. Ro