You are here

public function GridStackAdmin::getSettingsSummary in GridStack 8

Same name and namespace in other branches
  1. 8.2 src/Form/GridStackAdmin.php \Drupal\gridstack\Form\GridStackAdmin::getSettingsSummary()

Return the field formatter settings summary.

@todo: Remove second param $plugin for post-release for Blazy RC2+.

File

src/Form/GridStackAdmin.php, line 189

Class

GridStackAdmin
Provides resusable admin functions or form elements.

Namespace

Drupal\gridstack\Form

Code

public function getSettingsSummary($definition = [], $plugin = NULL) {

  // @todo: Remove condition for Blazy RC2+.
  if (!method_exists($this->blazyAdmin, 'getSettingsSummary')) {
    return $this->blazyAdmin
      ->settingsSummary($plugin, $definition);
  }
  return $this->blazyAdmin
    ->getSettingsSummary($definition);
}