public function FieldConfigBase::getName in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FieldConfigBase.php \Drupal\Core\Field\FieldConfigBase::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 FieldDefinitionInterface::getName
1 call to FieldConfigBase::getName()
- FieldConfig::postCreate in core/
modules/ field/ src/ Entity/ FieldConfig.php - Acts on a created entity before hooks are invoked.
File
- core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php, line 204
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
public function getName() {
return $this->field_name;
}