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];
  }
}
Please login to continue.