You are here

public function FractionField::buildOptionsForm in Fraction 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/views/field/FractionField.php \Drupal\fraction\Plugin\views\field\FractionField::buildOptionsForm()

Default options form that provides the label widget that all fields should have.

Overrides EntityField::buildOptionsForm

File

src/Plugin/views/field/FractionField.php, line 46

Class

FractionField
Field handler for Fraction fields.

Namespace

Drupal\fraction\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {

  // Inherit the parent options form.
  parent::buildOptionsForm($form, $form_state);

  // Remove the 'click_sort_column' form element.
  unset($form['click_sort_column']);
}