You are here

public function FractionTarget::getSummary in Fraction 8

Same name and namespace in other branches
  1. 2.x src/Feeds/Target/FractionTarget.php \Drupal\fraction\Feeds\Target\FractionTarget::getSummary()

Returns the summary for a target.

Returning the summary as array is encouraged. The allowance of returning a string only exists for backwards compatibility.

Return value

string|string[] The configuration summary.

Overrides FieldTargetBase::getSummary

File

src/Feeds/Target/FractionTarget.php, line 59

Class

FractionTarget
Defines a fraction field mapper.

Namespace

Drupal\fraction\Feeds\Target

Code

public function getSummary() {
  $types = $this
    ->importTypes();
  return $this
    ->t('Import type: %type', [
    '%type' => $types[$this->configuration['type']],
  ]);
}