diff --git a/core/lib/Drupal/Component/Plugin/Context/ContextInterface.php b/core/lib/Drupal/Component/Plugin/Context/ContextInterface.php index c3eb1a4..5783444 100644 --- a/core/lib/Drupal/Component/Plugin/Context/ContextInterface.php +++ b/core/lib/Drupal/Component/Plugin/Context/ContextInterface.php @@ -19,11 +19,13 @@ * \Drupal\Component\Plugin\ContextAwarePluginInterface. * * Context is separated out into individual objects, specified by this - * interface. Some types of context have values associated with them; all types - * of context have definitions, which are specified in classes implementing + * interface. All types of context have definitions, which are specified in + * classes implementing * \Drupal\Component\Plugin\Context\ContextDefinitionInterface (with methods to * get/set the context label, description, data type, and validation - * constraints). + * constraints). In addition, some types of context have data values and/or + * constraints. The definition, values, and constraints can be accessed via + * methods on this interface. * * Users of plugins must provide the necessary context data to plugins. A * typical method for doing this is for a plugin to define an event that it diff --git a/core/lib/Drupal/Core/Plugin/Context/ContextInterface.php b/core/lib/Drupal/Core/Plugin/Context/ContextInterface.php index 67297da..1ea5288 100644 --- a/core/lib/Drupal/Core/Plugin/Context/ContextInterface.php +++ b/core/lib/Drupal/Core/Plugin/Context/ContextInterface.php @@ -18,8 +18,8 @@ * \Drupal\Core\Plugin\Context\ContextDefinitionInterface, override the * non-Drupal generic interfaces in order to provide typed-data methods. * - * Usage example: Drupal block plugins use context for access and visibility - * conditions. \Drupal\Core\Block\BlockBase::access() calls + * Usage example: Drupal block plugins use context for visibility conditions. + * \Drupal\Core\Block\BlockBase::access() calls * \Drupal\Core\Block\BlockBase::getConditionContexts(), which dispatches a * block-specific event asking for context. Event subscribers in the Block * module (and potentially other modules that supply block condition context)