BlockPluginTrait::$inPreview
Same name in other branches
- 9 core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::inPreview
- 11.x core/lib/Drupal/Core/Block/BlockPluginTrait.php \Drupal\Core\Block\BlockPluginTrait::inPreview
Whether the plugin is being rendered in preview mode.
Type: bool
File
-
core/
lib/ Drupal/ Core/ Block/ BlockPluginTrait.php, line 38
Class
- BlockPluginTrait
- Provides the base implementation of a block plugin.
Namespace
Drupal\Core\BlockCode
protected $inPreview = FALSE;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.