view core/lib/Drupal/Component/Plugin/Exception/MissingValueContextException.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
line wrap: on
line 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);
  }

}