You are here

public function DeprecatedArray::serialize in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/Utility/DeprecatedArray.php \Drupal\Component\Utility\DeprecatedArray::serialize()
  2. 10 core/lib/Drupal/Component/Utility/DeprecatedArray.php \Drupal\Component\Utility\DeprecatedArray::serialize()

File

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

Class

DeprecatedArray
An array that triggers a deprecation warning when accessed.

Namespace

Drupal\Component\Utility

Code

public function serialize() {
  @trigger_error($this->message, E_USER_DEPRECATED);
  return parent::serialize();
}