public function ViewsMegarowLinkEdit::buildOptionsForm in Views Megarow 8
Default options form that provides the label widget that all fields should have.
Overrides EntityLink::buildOptionsForm
File
- src/
Plugin/ views/ field/ ViewsMegarowLinkEdit.php, line 51
Class
- ViewsMegarowLinkEdit
- Field handler to present a link node edit.
Namespace
Drupal\views_megarow\Plugin\views\fieldCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
// Remove the checkbox
// unset($form['alter']['alter_text']);
// unset($form['alter']['text']['#states']);
// unset($form['alter']['help']['#states']);
// $form['#pre_render'][] = array($this, 'preRenderCustomForm');
}