3 namespace Drupal\Component\Plugin\Exception;
6 * An exception class thrown when contexts exist but are missing a value.
8 class MissingValueContextException extends ContextException {
11 * MissingValueContextException constructor.
13 * @param string[] $contexts_without_value
14 * List of contexts with missing value.
16 public function __construct(array $contexts_without_value = []) {
17 $message = 'Required contexts without a value: ' . implode(', ', $contexts_without_value);
18 parent::__construct($message);