You are here

public function EmptyFieldText::settingsSummary in Empty fields 8

Returns a short summary line for the current formatter settings.

Return value

string Text for the field formatter settings summary.

Overrides EmptyFieldPluginBase::settingsSummary

See also

\Drupal\Core\Field\FormatterInterface::settingsSummary()

File

src/Plugin/EmptyFields/EmptyFieldText.php, line 48

Class

EmptyFieldText
Defines EmptyFieldText.

Namespace

Drupal\empty_fields\Plugin\EmptyFields

Code

public function settingsSummary() {
  return $this
    ->t('Empty Text: @empty_text', [
    '@empty_text' => $this->configuration['empty_text'],
  ]);
}