FieldStorageConfig::getName

public 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

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 508

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getName() {
  return $this->field_name;
}
doc_Drupal
2016-10-29 09:12:18
Comments
Leave a Comment

Please login to continue.