You are here

public function FieldTargetDefinition::getPropertyDescription in Feeds 8.3

Returns the description for a given property.

Parameters

string $property: The property to get a description for.

Return value

string The description for a property.

Overrides TargetDefinition::getPropertyDescription

File

src/FieldTargetDefinition.php, line 108

Class

FieldTargetDefinition
Provides a field definition wrapped over a field definition.

Namespace

Drupal\feeds

Code

public function getPropertyDescription($property) {
  if (!empty($this->properties[$property]['description'])) {
    return $this->properties[$property]['description'];
  }
  $property_definition = $this->fieldDefinition
    ->getItemDefinition()
    ->getPropertyDefinition($property);
  return $property_definition ? $property_definition
    ->getDescription() : parent::getPropertyDescription($property);
}