public function FieldStorageConfig::getName in Drupal 8
Same name and namespace in other branches
- 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getName()
Returns the machine name of the field.
This defines how the field data is accessed from the entity. For example, if the field name is "foo", then $entity->foo returns its data.
Return value
string The field name.
Overrides FieldStorageDefinitionInterface::getName
3 calls to FieldStorageConfig::getName()
- FieldStorageConfig::getOptionsProvider in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Gets an options provider for the given field item property.
- FieldStorageConfig::id in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Gets the identifier.
- FieldStorageConfig::preSaveNew in core/
modules/ field/ src/ Entity/ FieldStorageConfig.php - Prepares saving a new field definition.
File
- core/
modules/ field/ src/ Entity/ FieldStorageConfig.php, line 510
Class
- FieldStorageConfig
- Defines the Field storage configuration entity.
Namespace
Drupal\field\EntityCode
public function getName() {
return $this->field_name;
}