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()

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

Overrides RelationshipPluginBase::buildOptionsForm

File

lib/Drupal/views/Plugin/views/relationship/Broken.php, line 30
Definition of Drupal\views\Plugin\views\relationship\Broken.

Class

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

Namespace

Drupal\views\Plugin\views\relationship

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>',
  );
}