Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
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 } |