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

Breadcrumb

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

function MissingValueContextException::__construct

MissingValueContextException constructor.

Parameters

string[] $contexts_without_value: List of contexts with missing value.

File

core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php, line 16

Class

MissingValueContextException
An exception class thrown when contexts exist but are missing a value.

Namespace

Drupal\Component\Plugin\Exception

Code

public function __construct(array $contexts_without_value = []) {
    $message = 'Required contexts without a value: ' . implode(', ', $contexts_without_value);
    parent::__construct($message);
}
RSS feed
Powered by Drupal