function BlockPluginTrait::setInPreview
Same name in other branches
- 10 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setInPreview()
- 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::setInPreview()
File
-
core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 294
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
public function setInPreview(bool $in_preview) : void {
$this->inPreview = $in_preview;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.