public function FieldDefinitionInterface::getName in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Field/FieldDefinitionInterface.php \Drupal\Core\Field\FieldDefinitionInterface::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.
2 methods override FieldDefinitionInterface::getName()
- BaseFieldDefinition::getName in core/
lib/ Drupal/ Core/ Field/ BaseFieldDefinition.php - Returns the machine name of the field.
- FieldConfigBase::getName in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php - Returns the machine name of the field.
File
- core/
lib/ Drupal/ Core/ Field/ FieldDefinitionInterface.php, line 67 - Contains \Drupal\Core\Field\FieldDefinitionInterface.
Class
- FieldDefinitionInterface
- Defines an interface for entity field definitions.
Namespace
Drupal\Core\FieldCode
public function getName();