You are here

public function TwigFieldForm::getProperties in Display Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/Form/TwigFieldForm.php \Drupal\ds\Form\TwigFieldForm::getProperties()

Returns the properties for the custom field.

Overrides FieldFormBase::getProperties

File

src/Form/TwigFieldForm.php, line 45

Class

TwigFieldForm
Configures token fields.

Namespace

Drupal\ds\Form

Code

public function getProperties(FormStateInterface $form_state) {
  return [
    'content' => $form_state
      ->getValue('content'),
  ];
}