You are here

public function ValidFacebookInstantArticles::buildOptionsForm in Facebook Instant Articles 8.2

Same name and namespace in other branches
  1. 3.x modules/fb_instant_articles_views/src/Plugin/views/filter/ValidFacebookInstantArticles.php \Drupal\fb_instant_articles_views\Plugin\views\filter\ValidFacebookInstantArticles::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

modules/fb_instant_articles_views/src/Plugin/views/filter/ValidFacebookInstantArticles.php, line 99

Class

ValidFacebookInstantArticles
Simple filter that checks if a node implements the FIA custom view mode.

Namespace

Drupal\fb_instant_articles_views\Plugin\views\filter

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['info'] = [
    '#type' => 'markup',
    '#markup' => 'Filter for nodes that implement the FIA view mode',
    '#prefix' => '<div class="clearfix">',
    '#suffix' => '</div>',
  ];
}