function DeprecatedArray::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Component/Utility/DeprecatedArray.php \Drupal\Component\Utility\DeprecatedArray::__construct()
  2. 8.9.x core/lib/Drupal/Component/Utility/DeprecatedArray.php \Drupal\Component\Utility\DeprecatedArray::__construct()
  3. 11.x core/lib/Drupal/Component/Utility/DeprecatedArray.php \Drupal\Component\Utility\DeprecatedArray::__construct()

DeprecatedArray constructor.

Parameters

array $values: The array values.

$message: The deprecation message.

File

core/lib/Drupal/Component/Utility/DeprecatedArray.php, line 25

Class

DeprecatedArray
An array that triggers a deprecation warning when accessed.

Namespace

Drupal\Component\Utility

Code

public function __construct(array $values, $message) {
    $this->message = $message;
    parent::__construct($values);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.