You are here

public function FieldStorageConfig::getName in Drupal 9

Same name and namespace in other branches
  1. 8 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 513

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getName() {
  return $this->field_name;
}