Issue #2313615 by tim.plunkett: Clarify the deprecated-ness of ArrayAccess usage in FormState.

8.0.x
Alex Pott 2014-08-10 17:38:02 -05:00
parent 1a8367ce4b
commit d21c9a4e2e
1 changed files with 8 additions and 0 deletions

View File

@ -467,6 +467,8 @@ class FormState implements FormStateInterface, \ArrayAccess {
/**
* {@inheritdoc}
*
* @deprecated in Drupal 8.0.x, might be removed before Drupal 8.0.0.
*/
public function offsetExists($offset) {
return isset($this->{$offset}) || isset($this->internalStorage[$offset]);
@ -474,6 +476,8 @@ class FormState implements FormStateInterface, \ArrayAccess {
/**
* {@inheritdoc}
*
* @deprecated in Drupal 8.0.x, might be removed before Drupal 8.0.0.
*/
public function &offsetGet($offset) {
$value = &$this->get($offset);
@ -482,6 +486,8 @@ class FormState implements FormStateInterface, \ArrayAccess {
/**
* {@inheritdoc}
*
* @deprecated in Drupal 8.0.x, might be removed before Drupal 8.0.0.
*/
public function offsetSet($offset, $value) {
$this->set($offset, $value);
@ -489,6 +495,8 @@ class FormState implements FormStateInterface, \ArrayAccess {
/**
* {@inheritdoc}
*
* @deprecated in Drupal 8.0.x, might be removed before Drupal 8.0.0.
*/
public function offsetUnset($offset) {
if (property_exists($this, $offset)) {