You are here

protected function EntityReference::getLabelKey in Feeds 8.3

Returns the entity type's label key.

Return value

string The label key of the entity type.

4 calls to EntityReference::getLabelKey()
EntityReference::buildConfigurationForm in src/Feeds/Target/EntityReference.php
Form constructor.
EntityReference::defaultConfiguration in src/Feeds/Target/EntityReference.php
Gets default configuration for this plugin.
EntityReference::findEntities in src/Feeds/Target/EntityReference.php
Tries to lookup an existing entity.
EntityReference::getSummary in src/Feeds/Target/EntityReference.php
Returns the summary for a target.

File

src/Feeds/Target/EntityReference.php, line 242

Class

EntityReference
Defines an entity reference mapper.

Namespace

Drupal\feeds\Feeds\Target

Code

protected function getLabelKey() {
  return $this->entityTypeManager
    ->getDefinition($this
    ->getEntityType())
    ->getKey('label');
}