X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FPlugin%2FContext%2FContext.php;h=ac541c430f0630b17b4374e6012134a4fd74aa7c;hb=refs%2Fheads%2Fd864;hp=49571206c40881f8463712f971e5c6c8122f995d;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/lib/Drupal/Core/Plugin/Context/Context.php b/web/core/lib/Drupal/Core/Plugin/Context/Context.php index 49571206c..ac541c430 100644 --- a/web/core/lib/Drupal/Core/Plugin/Context/Context.php +++ b/web/core/lib/Drupal/Core/Plugin/Context/Context.php @@ -6,6 +6,7 @@ use Drupal\Component\Plugin\Context\Context as ComponentContext; use Drupal\Component\Plugin\Exception\ContextException; use Drupal\Core\Cache\CacheableDependencyInterface; use Drupal\Core\Cache\CacheableMetadata; +use Drupal\Core\DependencyInjection\DependencySerializationTrait; use Drupal\Core\TypedData\TypedDataInterface; use Drupal\Core\TypedData\TypedDataTrait; @@ -15,6 +16,7 @@ use Drupal\Core\TypedData\TypedDataTrait; class Context extends ComponentContext implements ContextInterface { use TypedDataTrait; + use DependencySerializationTrait; /** * The data associated with the context. @@ -123,7 +125,6 @@ class Context extends ComponentContext implements ContextInterface { return $this->contextData; } - /** * {@inheritdoc} */