You are here

public function Broken::buildOptionsForm in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Drupal/views/Plugin/views/area/Broken.php \Drupal\views\Plugin\views\area\Broken::buildOptionsForm()
  2. 8.3 lib/Drupal/views/Plugin/views/relationship/Broken.php \Drupal\views\Plugin\views\relationship\Broken::buildOptionsForm()
  3. 8.3 lib/Drupal/views/Plugin/views/filter/Broken.php \Drupal\views\Plugin\views\filter\Broken::buildOptionsForm()
  4. 8.3 lib/Drupal/views/Plugin/views/sort/Broken.php \Drupal\views\Plugin\views\sort\Broken::buildOptionsForm()
  5. 8.3 lib/Drupal/views/Plugin/views/argument/Broken.php \Drupal\views\Plugin\views\argument\Broken::buildOptionsForm()
  6. 8.3 lib/Drupal/views/Plugin/views/field/Broken.php \Drupal\views\Plugin\views\field\Broken::buildOptionsForm()

Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides FilterPluginBase::buildOptionsForm

File

lib/Drupal/views/Plugin/views/filter/Broken.php, line 32
Definition of Drupal\views\Plugin\views\filter\Broken.

Class

Broken
A special handler to take the place of missing or broken handlers.

Namespace

Drupal\views\Plugin\views\filter

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['markup'] = array(
    '#markup' => '<div class="form-item description">' . t('The handler for this item is broken or missing and cannot be used. If a module provided the handler and was disabled, re-enabling the module may restore it. Otherwise, you should probably delete this item.') . '</div>',
  );
}