FieldStorageConfig::getPropertyDefinition

public FieldStorageConfig::getPropertyDefinition($name)

Gets the definition of a contained property.

Parameters

string $name: The name of property.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface|null The definition of the property or NULL if the property does not exist.

Overrides FieldStorageDefinitionInterface::getPropertyDefinition

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 735

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getPropertyDefinition($name) {
  if (!isset($this->propertyDefinitions)) {
    $this->getPropertyDefinitions();
  }
  if (isset($this->propertyDefinitions[$name])) {
    return $this->propertyDefinitions[$name];
  }
}
doc_Drupal
2016-10-29 09:12:19
Comments
Leave a Comment

Please login to continue.