You are here

public function LingotekSourceStatusFormatter::settingsForm in Lingotek Translation 8.2

Same name and namespace in other branches
  1. 4.0.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  2. 3.0.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  3. 3.1.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  4. 3.2.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  5. 3.3.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  6. 3.4.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  7. 3.5.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  8. 3.6.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  9. 3.7.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()
  10. 3.8.x src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php \Drupal\lingotek\Plugin\Field\FieldFormatter\LingotekSourceStatusFormatter::settingsForm()

Returns a form to configure settings for the formatter.

Invoked from \Drupal\field_ui\Form\EntityDisplayFormBase to allow administrators to configure the formatter. The field_ui module takes care of handling submitted form values.

Parameters

array $form: The form where the settings form is being included in.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form elements for the formatter settings.

Overrides LanguageFormatter::settingsForm

File

src/Plugin/Field/FieldFormatter/LingotekSourceStatusFormatter.php, line 35

Class

LingotekSourceStatusFormatter
Plugin implementation of the 'lingotek_translation_status' formatter.

Namespace

Drupal\lingotek\Plugin\Field\FieldFormatter

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  $form = [];
  return $form;
}