You are here

public function DateTargetBase::getSummary in Feeds 8.3

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/DateTargetBase.php, line 83

Class

DateTargetBase
A base class for date targets.

Namespace

Drupal\feeds\Feeds\Target

Code

public function getSummary() {
  $summary = parent::getSummary();
  $options = $this
    ->getTimezoneOptions();
  $summary[] = $this
    ->t('Default timezone: %zone', [
    '%zone' => $options[$this->configuration['timezone']],
  ]);
  return $summary;
}