public function Custom::buildOptionsForm in Views (for Drupal 7) 8.3
Default options form that provides the label widget that all fields should have.
Overrides FieldPluginBase::buildOptionsForm
File
- lib/
Drupal/ views/ Plugin/ views/ field/ Custom.php, line 36 - Definition of Drupal\views\Plugin\views\field\Custom.
Class
- Custom
- A handler to provide a field that is completely custom by the administrator.
Namespace
Drupal\views\Plugin\views\fieldCode
public function buildOptionsForm(&$form, &$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'][] = 'views_handler_field_custom_pre_render_move_text';
}