X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FPlugin%2FBlock%2FViewsExposedFilterBlock.php;fp=web%2Fcore%2Fmodules%2Fviews%2Fsrc%2FPlugin%2FBlock%2FViewsExposedFilterBlock.php;h=2dd4652a9751094b7abee24d209ab90369a86eeb;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php b/web/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php new file mode 100644 index 000000000..2dd4652a9 --- /dev/null +++ b/web/core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php @@ -0,0 +1,38 @@ +view->display_handler->getCacheMetadata()->getCacheContexts(); + return Cache::mergeContexts(parent::getCacheContexts(), $contexts); + } + + /** + * {@inheritdoc} + */ + public function build() { + $output = $this->view->display_handler->viewExposedFormBlocks(); + + // Before returning the block output, convert it to a renderable array with + // contextual links. + $this->addContextualLinks($output, 'exposed_filter'); + + return $output; + } + +}