function DefaultFileFormatter::settingsForm

Same name in other branches
  1. 9 core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\DefaultFileFormatter::settingsForm()
  2. 10 core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\DefaultFileFormatter::settingsForm()
  3. 11.x core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php \Drupal\file\Plugin\Field\FieldFormatter\DefaultFileFormatter::settingsForm()

Overrides BaseFieldFileFormatterBase::settingsForm

File

core/modules/file/src/Plugin/Field/FieldFormatter/DefaultFileFormatter.php, line 34

Class

DefaultFileFormatter
Formatter for a text field on a file entity that links the field to the file.

Namespace

Drupal\file\Plugin\Field\FieldFormatter

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
    // We don't call the parent in order to bypass the link to file form.
    return $form;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.