function BlockPluginInterface::createPlaceholder

Whether to render blocks in a placeholder.

When blocks of this type are rendered, indicate whether they should be rendered in a placeholder or not. In general, blocks that attach libraries and/or render entities should be placeholdered to optimize various aspects of rendering performance.

Return value

bool Whether to placeholder blocks of this plugin type.

File

core/lib/Drupal/Core/Block/BlockPluginInterface.php, line 90

Class

BlockPluginInterface
Defines the required interface for all block plugins.

Namespace

Drupal\Core\Block

Code

public function createPlaceholder() : bool;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.