You are here

public function Price::getSummary in Commerce Feeds 8

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/Price.php, line 70

Class

Price
Defines a commerce_price field mapper.

Namespace

Drupal\commerce_feeds\Feeds\Target

Code

public function getSummary() {
  return [
    'unit' => [
      '#type' => 'item',
      '#markup' => $this
        ->t('Currency: %currency_code', [
        '%currency_code' => $this->configuration['currency_code'],
      ]),
    ],
  ];
}