function PreviewAwarePluginInterface::setInPreview

Same name in other branches
  1. 9 core/lib/Drupal/Core/Plugin/PreviewAwarePluginInterface.php \Drupal\Core\Plugin\PreviewAwarePluginInterface::setInPreview()
  2. 11.x core/lib/Drupal/Core/Plugin/PreviewAwarePluginInterface.php \Drupal\Core\Plugin\PreviewAwarePluginInterface::setInPreview()

Set preview mode for the plugin.

Parameters

bool $in_preview: TRUE if the plugin should be set to preview mode, FALSE otherwise.

1 method overrides PreviewAwarePluginInterface::setInPreview()
LayoutDefault::setInPreview in core/lib/Drupal/Core/Layout/LayoutDefault.php
Set preview mode for the plugin.

File

core/lib/Drupal/Core/Plugin/PreviewAwarePluginInterface.php, line 22

Class

PreviewAwarePluginInterface
Provides an interface to support preview mode injection in plugins.

Namespace

Drupal\Core\Plugin

Code

public function setInPreview(bool $in_preview) : void;

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