You are here

public function NodeTitle::settingsSummary in Exclude Node Title 8

File

src/Plugin/DsField/Node/NodeTitle.php, line 38

Class

NodeTitle
Extended NodeTitle Display Suite plugin.

Namespace

Drupal\exclude_node_title\Plugin\DsField\Node

Code

public function settingsSummary($settings) {
  $summary = Title::settingsSummary($settings);
  $config = $this
    ->getConfiguration();
  if (!empty($config['exclude_node_title'])) {
    $summary[] = $this
      ->t('Use Exclude Node Title: yes');
  }
  else {
    $summary[] = $this
      ->t('Use Exclude Node Title: no');
  }
  return $summary;
}