DataDefinition::offsetGet

public &DataDefinition::offsetGet($offset)

This is for BC support only. @todo: Remove in https://www.drupal.org/node/1928868.

File

core/lib/Drupal/Core/TypedData/DataDefinition.php, line 307

Class

DataDefinition
A typed data definition class for defining data based on defined data types.

Namespace

Drupal\Core\TypedData

Code

public function &offsetGet($offset) {
  if (!isset($this->definition[$offset])) {
    $this->definition[$offset] = NULL;
  }
  return $this->definition[$offset];
}
doc_Drupal
2016-10-29 09:00:07
Comments
Leave a Comment

Please login to continue.