class MissingValueContextException
An exception class thrown when contexts exist but are missing a value.
Hierarchy
- class \Drupal\Component\Plugin\Exception\ContextException extends \Drupal\Component\Plugin\Exception\Exception implements \Drupal\Component\Plugin\Exception\ExceptionInterface
- class \Drupal\Component\Plugin\Exception\MissingValueContextException extends \Drupal\Component\Plugin\Exception\ContextException
Expanded class hierarchy of MissingValueContextException
2 files declare their use of MissingValueContextException
- BlockAccessControlHandler.php in core/
modules/ block/ src/ BlockAccessControlHandler.php - ContextHandler.php in core/
lib/ Drupal/ Core/ Plugin/ Context/ ContextHandler.php
File
-
core/
lib/ Drupal/ Component/ Plugin/ Exception/ MissingValueContextException.php, line 8
Namespace
Drupal\Component\Plugin\ExceptionView source
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);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MissingValueContextException::__construct | public | function | MissingValueContextException constructor. |