
| Current Path : /var/www/html/rocksensor3/web/core/lib/Drupal/Core/Plugin/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor3/web/core/lib/Drupal/Core/Plugin/PreviewAwarePluginInterface.php |
<?php
namespace Drupal\Core\Plugin;
/**
* Provides an interface to support preview mode injection in plugins.
*
* Block and layout plugins can implement this interface to be informed when
* preview mode is being used in Layout Builder.
*
* @see \Drupal\layout_builder\Event\SectionComponentBuildRenderArrayEvent
* @see \Drupal\layout_builder\Section::toRenderArray()
*/
interface PreviewAwarePluginInterface {
/**
* Set preview mode for the plugin.
*
* @param bool $in_preview
* TRUE if the plugin should be set to preview mode, FALSE otherwise.
*/
public function setInPreview(bool $in_preview): void;
}