Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MissingValueContextException.php

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\Exception
View 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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal