You are here

public function FieldStorageConfig::getName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 512
Contains \Drupal\field\Entity\FieldStorageConfig.

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

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