You are here

public function BlazyAdminFormatterBase::settingsSummary in Blazy 8

Same name and namespace in other branches
  1. 8.2 src/Form/BlazyAdminFormatterBase.php \Drupal\blazy\Form\BlazyAdminFormatterBase::settingsSummary()

Return the field formatter settings summary.

Deprecated

in blazy:8.x-1.0 and is removed from blazy:8.x-2.0. Use self::getSettingsSummary() instead.

See also

https://www.drupal.org/node/3103018

File

src/Form/BlazyAdminFormatterBase.php, line 60

Class

BlazyAdminFormatterBase
A base for field formatter admin to have re-usable methods in one place.

Namespace

Drupal\blazy\Form

Code

public function settingsSummary($plugin, $definition = []) {
  $definition = isset($definition) ? $definition : $plugin
    ->getScopedFormElements();
  $definition['settings'] = isset($definition['settings']) ? $definition['settings'] : $plugin
    ->getSettings();
  return $this
    ->getSettingsSummary($definition);
}