MissingValueContextException.php in Drupal 8
Same filename and directory in other branches
Namespace
Drupal\Component\Plugin\ExceptionFile
core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.phpView source
<?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);
}
}
Classes
Name | Description |
---|---|
MissingValueContextException | An exception class thrown when contexts exist but are missing a value. |