3 namespace Drupal\Core\Plugin\Context;
5 use Drupal\Component\Plugin\Context\ContextDefinitionInterface as ComponentContextDefinitionInterface;
8 * Interface to define definition objects in ContextInterface via TypedData.
10 * @see \Drupal\Component\Plugin\Context\ContextDefinitionInterface
11 * @see \Drupal\Core\Plugin\Context\ContextInterface
13 interface ContextDefinitionInterface extends ComponentContextDefinitionInterface {
16 * Returns the data definition of the defined context.
18 * @return \Drupal\Core\TypedData\DataDefinitionInterface
19 * The data definition object.
21 public function getDataDefinition();
24 * Determines if this definition is satisfied by a context object.
26 * @param \Drupal\Core\Plugin\Context\ContextInterface $context
30 * TRUE if this definition is satisfiable by the context object, FALSE
33 public function isSatisfiedBy(ContextInterface $context);