DataDefinition::offsetExists

public DataDefinition::offsetExists($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 295

Class

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

Namespace

Drupal\Core\TypedData

Code

public function offsetExists($offset) {
  // PHP's array access does not work correctly with isset(), so we have to
  // bake isset() in here. See https://bugs.php.net/bug.php?id=41727.
  return array_key_exists($offset, $this->definition) && isset($this->definition[$offset]);
}
doc_Drupal
2016-10-29 09:00:07
Comments
Leave a Comment

Please login to continue.