public function ComputedPhpFormatterPhp::settingsSummary in Computed Field 8.2
Overrides ComputedStringFormatter::settingsSummary
File
- computed_field_php_formatter/
src/ Plugin/ Field/ FieldFormatter/ ComputedPhpFormatterPhp.php, line 67 - Contains \Drupal\Core\Field\Plugin\Field\FieldFormatter\ComputedPhpFormatterPhp.
Class
- ComputedPhpFormatterPhp
- Plugin implementation of the 'Free PHP' formatter for computed fields.
Namespace
Drupal\computed_field_php_formatter\Plugin\Field\FieldFormatterCode
public function settingsSummary() {
$settings = $this
->getSettings();
$summary = parent::settingsSummary();
$summary[] = nl2br(Html::escape($settings['php_code']));
return $summary;
}