public function ValidFacebookInstantArticles::buildOptionsForm in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 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\filterCode
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>',
];
}