You are here

public function NodeTitle::settingsForm in Exclude Node Title 8

File

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

Class

NodeTitle
Extended NodeTitle Display Suite plugin.

Namespace

Drupal\exclude_node_title\Plugin\DsField\Node

Code

public function settingsForm($form, FormStateInterface $form_state) {
  $settings = Title::settingsForm($form, $form_state);
  $config = $this
    ->getConfiguration();
  $settings['exclude_node_title'] = [
    '#type' => 'select',
    '#title' => $this
      ->t('Use Exclude Node Title'),
    '#options' => [
      'No',
      'Yes',
    ],
    '#description' => $this
      ->t('Use the settings for the Exclude Node Title module for the title. Set to "off" to always show title.'),
    '#default_value' => $config['exclude_node_title'],
  ];
  return $settings;
}