public function FieldStorageConfig::getPropertyDefinition in Drupal 9
Same name and namespace in other branches
- 8 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getPropertyDefinition()
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 743
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function getPropertyDefinition($name) {
if (!isset($this->propertyDefinitions)) {
$this
->getPropertyDefinitions();
}
if (isset($this->propertyDefinitions[$name])) {
return $this->propertyDefinitions[$name];
}
}