You are here

ContextDefinitionInterface.php in Zircon Profile 8

File

core/lib/Drupal/Core/Plugin/Context/ContextDefinitionInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Plugin\Context\ContextDefinitionInterface.
 */
namespace Drupal\Core\Plugin\Context;

use Drupal\Component\Plugin\Context\ContextDefinitionInterface as ComponentContextDefinitionInterface;

/**
 * Interface for context definitions.
 */
interface ContextDefinitionInterface extends ComponentContextDefinitionInterface {

  /**
   * Returns the data definition of the defined context.
   *
   * @return \Drupal\Core\TypedData\DataDefinitionInterface
   *   The data definition object.
   */
  public function getDataDefinition();

}

Interfaces

Namesort descending Description
ContextDefinitionInterface Interface for context definitions.