Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PreviewAwarePluginInterface.php

function 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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal