Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / lib / Drupal / Core / Display / ContextAwareVariantInterface.php
1 <?php
2
3 namespace Drupal\Core\Display;
4
5 /**
6  * Provides an interface for variant plugins that are context-aware.
7  */
8 interface ContextAwareVariantInterface extends VariantInterface {
9
10   /**
11    * Gets the values for all defined contexts.
12    *
13    * @return \Drupal\Component\Plugin\Context\ContextInterface[]
14    *   An array of set contexts, keyed by context name.
15    */
16   public function getContexts();
17
18   /**
19    * Sets the context values for this display variant.
20    *
21    * @param \Drupal\Component\Plugin\Context\ContextInterface[] $contexts
22    *   An array of contexts, keyed by context name.
23    *
24    * @return $this
25    */
26   public function setContexts(array $contexts);
27
28 }