Skip to content
Snippets Groups Projects
Commit 56fd8dc4 authored by catch's avatar catch
Browse files

Handle invalid views block plugins when #create_placeholder is set to true.

parent aeca165c
No related branches found
No related tags found
1 merge request!7355Draft: Resolve #3437499 "With tests"
......@@ -24,6 +24,10 @@ class ViewsBlock extends ViewsBlockBase {
* {@inheritdoc}
*/
public function build() {
// If the block plugin is invalid, there is nothing to do.
if (!method_exists($this->view->display_handler, 'preBlockBuild')) {
return [];
}
$this->view->display_handler->preBlockBuild($this);
$args = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment