You are here

public function Dimensions::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/Dimensions.php, line 64

Class

Dimensions
Defines a physical_dimensions field mapper.

Namespace

Drupal\commerce_feeds\Feeds\Target

Code

public function getSummary() {
  return $this
    ->t('Unit: %unit', [
    '%unit' => $this->configuration['unit'],
  ]);
}