Mercurial > hg > isophonics-drupal-site
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php Thu Feb 28 13:21:36 2019 +0000 @@ -0,0 +1,21 @@ +<?php + +namespace Drupal\Component\Plugin\Exception; + +/** + * An exception class thrown when contexts exist but are missing a value. + */ +class MissingValueContextException extends ContextException { + + /** + * MissingValueContextException constructor. + * + * @param string[] $contexts_without_value + * List of contexts with missing value. + */ + public function __construct(array $contexts_without_value = []) { + $message = 'Required contexts without a value: ' . implode(', ', $contexts_without_value); + parent::__construct($message); + } + +}