You are here

public function ElementLinkClassTrait::settingsForm in Element Class Formatter 8

File

src/Plugin/Field/FieldFormatter/ElementLinkClassTrait.php, line 27

Class

ElementLinkClassTrait
The ElementLinkClassTrait is used to add a class to a field which .

Namespace

Drupal\element_class_formatter\Plugin\Field\FieldFormatter

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  $elements = parent::settingsForm($form, $form_state);
  $class = $this
    ->getSetting('class');
  return $this
    ->elementClassSettingsForm($elements, $class);
}