You are here

public function BlockPluginTrait::setInPreview in Drupal 10

File

core/lib/Drupal/Core/Block/BlockPluginTrait.php, line 294

Class

BlockPluginTrait
Provides the base implementation of a block plugin.

Namespace

Drupal\Core\Block

Code

public function setInPreview(bool $in_preview) : void {
  $this->inPreview = $in_preview;
}