Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / Exception / MissingValueContextException.php
1 <?php
2
3 namespace Drupal\Component\Plugin\Exception;
4
5 /**
6  * An exception class thrown when contexts exist but are missing a value.
7  */
8 class MissingValueContextException extends ContextException {
9
10   /**
11    * MissingValueContextException constructor.
12    *
13    * @param string[] $contexts_without_value
14    *   List of contexts with missing value.
15    */
16   public function __construct(array $contexts_without_value = []) {
17     $message = 'Required contexts without a value: ' . implode(', ', $contexts_without_value);
18     parent::__construct($message);
19   }
20
21 }