You are here

public function ValidFacebookInstantArticles::buildOptionsForm in Facebook Instant Articles 8

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

src/Plugin/views/filter/ValidFacebookInstantArticles.php, line 48
Contains \Drupal\views\Plugin\views\filter\ImplementsViewMode.

Class

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

Namespace

Drupal\fb_instant_articles\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>',
  ];
}