DeprecatedArray.php in Drupal 9
File
core/lib/Drupal/Component/Utility/DeprecatedArray.php
View source
<?php
namespace Drupal\Component\Utility;
class DeprecatedArray extends \ArrayObject {
protected $message;
public function __construct(array $values, $message) {
$this->message = $message;
parent::__construct($values);
}
public function offsetExists($offset) {
@trigger_error($this->message, E_USER_DEPRECATED);
return parent::offsetExists($offset);
}
public function offsetGet($offset) {
@trigger_error($this->message, E_USER_DEPRECATED);
return parent::offsetGet($offset);
}
public function offsetSet($offset, $value) {
@trigger_error($this->message, E_USER_DEPRECATED);
parent::offsetSet($offset, $value);
}
public function offsetUnset($offset) {
@trigger_error($this->message, E_USER_DEPRECATED);
parent::offsetUnset($offset);
}
public function getIterator() {
@trigger_error($this->message, E_USER_DEPRECATED);
return parent::getIterator();
}
public function unserialize($serialized) {
@trigger_error($this->message, E_USER_DEPRECATED);
parent::unserialize($serialized);
}
public function serialize() {
@trigger_error($this->message, E_USER_DEPRECATED);
return parent::serialize();
}
public function count() {
@trigger_error($this->message, E_USER_DEPRECATED);
return parent::count();
}
}