public function FieldConfigBase::getName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 198 - Contains \Drupal\Core\Field\FieldConfigBase.
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
public function getName() {
return $this->field_name;
}