DependencySerializationTraitPass

Sets the _serviceId property on all services. Hierarchy class \Drupal\Core\DependencyInjection\Compiler\DependencySerializationTraitPass implements CompilerPassInterface See also \Drupal\Core\DependencyInjection\DependencySerializationTrait File core/lib/Drupal/Core/DependencyInjection/Compiler/DependencySerializationTraitPass.php, line 13 Namespace Drupal\Core\DependencyInjection\Compiler Members Name Modifiers Type Description DependencySerializationTraitPass::process pub

DependencySerializationTrait::__wakeup

public DependencySerializationTrait::__wakeup() File core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php, line 46 Class DependencySerializationTrait Provides dependency injection friendly methods for serialization. Namespace Drupal\Core\DependencyInjection Code public function __wakeup() { // Tests in isolation potentially unserialize in the parent process. if (isset($GLOBALS['__PHPUNIT_BOOTSTRAP']) && !\Drupal::hasContainer()) { return; } $con

DependencySerializationTrait::__sleep

public DependencySerializationTrait::__sleep() File core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php, line 22 Class DependencySerializationTrait Provides dependency injection friendly methods for serialization. Namespace Drupal\Core\DependencyInjection Code public function __sleep() { $this->_serviceIds = array(); $vars = get_object_vars($this); foreach ($vars as $key => $value) { if (is_object($value) && isset($value->_serviceId)) {

DependencySerializationTrait::$_serviceIds

An array of service IDs keyed by property name used for serialization. Type: array File core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php, line 17 Class DependencySerializationTrait Provides dependency injection friendly methods for serialization. Namespace Drupal\Core\DependencyInjection Code protected $_serviceIds = array();

DependencySerializationTrait

Provides dependency injection friendly methods for serialization. Hierarchy trait \Drupal\Core\DependencyInjection\DependencySerializationTrait File core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php, line 10 Namespace Drupal\Core\DependencyInjection Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization. DependencySerializationTra

DenyPrivateImageStyleDownload::__construct

public DenyPrivateImageStyleDownload::__construct(RouteMatchInterface $route_match) Constructs a deny image preview page cache policy. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. File core/modules/image/src/PageCache/DenyPrivateImageStyleDownload.php, line 31 Class DenyPrivateImageStyleDownload Cache policy for image preview page. Namespace Drupal\image\PageCache Code public function __construct(RouteMatchInterface $route_match) { $this

DenyPrivateImageStyleDownload::check

public DenyPrivateImageStyleDownload::check(Response $response, Request $request) Determines whether it is save to store a page in the cache. Parameters \Symfony\Component\HttpFoundation\Response $response: The response which is about to be sent to the client. \Symfony\Component\HttpFoundation\Request $request: The request object. Return value string|null Either static::DENY or NULL. Calling code may attempt to store a page in the cache unless static::DENY is returned. Returns NULL if the pol

DenyPrivateImageStyleDownload::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/modules/image/src/PageCache/DenyPrivateImageStyleDownload.php, line 23 Class DenyPrivateImageStyleDownload Cache policy for image preview page. Namespace Drupal\image\PageCache Code protected $routeMatch;

DenyPrivateImageStyleDownload

Cache policy for image preview page. This policy rule denies caching of responses generated by the entity.image.preview route. Hierarchy class \Drupal\image\PageCache\DenyPrivateImageStyleDownload implements ResponsePolicyInterface File core/modules/image/src/PageCache/DenyPrivateImageStyleDownload.php, line 16 Namespace Drupal\image\PageCache Members Name Modifiers Type Description DenyPrivateImageStyleDownload::$routeMatch protected property The current route match.

DenyNodePreview::__construct

public DenyNodePreview::__construct(RouteMatchInterface $route_match) Constructs a deny node preview page cache policy. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. File core/modules/node/src/PageCache/DenyNodePreview.php, line 31 Class DenyNodePreview Cache policy for node preview page. Namespace Drupal\node\PageCache Code public function __construct(RouteMatchInterface $route_match) { $this->routeMatch = $route_match; }