You are here

protected function FieldTypeExportBase::getMainPropertyName in Entity Export CSV 8

Get the main property name of a field.

Parameters

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

Return value

string The main property name.

1 call to FieldTypeExportBase::getMainPropertyName()
FieldTypeExportBase::buildConfigurationForm in src/Plugin/FieldTypeExportBase.php
Build the configuration form.

File

src/Plugin/FieldTypeExportBase.php, line 651

Class

FieldTypeExportBase
Base class for Field type export plugins.

Namespace

Drupal\entity_export_csv\Plugin

Code

protected function getMainPropertyName(FieldDefinitionInterface $field_definition) {
  $main_property_name = $field_definition
    ->getFieldStorageDefinition()
    ->getMainPropertyName();
  return $main_property_name;
}