Search for preview

  1. Search 7.x for preview
  2. Search 9.5.x for preview
  3. Search 8.9.x for preview
  4. Search 10.3.x for preview
  5. Other projects
Title Object type File name Summary
DenyNodePreview::$routeMatch property core/modules/node/src/PageCache/DenyNodePreview.php The current route match.
DenyNodePreview::check function core/modules/node/src/PageCache/DenyNodePreview.php Determines whether it is save to store a page in the cache.
DenyNodePreview::__construct function core/modules/node/src/PageCache/DenyNodePreview.php Constructs a deny node preview page cache policy.
DenyNodePreviewTest class core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php @coversDefaultClass \Drupal\node\PageCache\DenyNodePreview
@group node
DenyNodePreviewTest.php file core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php
DenyNodePreviewTest::$policy property core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php The response policy under test.
DenyNodePreviewTest::$request property core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php A request object.
DenyNodePreviewTest::$response property core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php A response object.
DenyNodePreviewTest::$routeMatch property core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php The current route match.
DenyNodePreviewTest::providerPrivateImageStyleDownloadPolicy function core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php Provides data and expected results for the test method.
DenyNodePreviewTest::setUp function core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php
DenyNodePreviewTest::testPrivateImageStyleDownloadPolicy function core/modules/node/tests/src/Unit/PageCache/DenyNodePreviewTest.php Asserts that caching is denied on the node preview route.
DisplayPluginBase::preview function core/modules/views/src/Plugin/views/display/DisplayPluginBase.php Renders the display for the purposes of a live preview.
DisplayPluginInterface::preview function core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php Renders the display for the purposes of a live preview.
DisplayTest::preview function core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php Renders the display for the purposes of a live preview.
EntityReferenceWidgetTest::testWidgetPreview function core/modules/media_library/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php Tests the preview displayed by the field widget.
ExtraFieldBlock::getPreviewFallbackString function core/modules/layout_builder/src/Plugin/Block/ExtraFieldBlock.php
Feed::preview function core/modules/views/src/Plugin/views/display/Feed.php Renders the display for the purposes of a live preview.
FieldBlock::getPreviewFallbackString function core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
hook_views_preview_info_alter function core/modules/views/views.api.php Alter the view preview information.
image-preview.css file core/themes/claro/css/components/image-preview.css Image preview component.
image-preview.pcss.css file core/themes/claro/css/components/image-preview.pcss.css Image preview component.
image-style-preview.html.twig file core/themes/stable9/templates/admin/image-style-preview.html.twig Theme override to display a preview of an image style.
image-style-preview.html.twig file core/modules/image/templates/image-style-preview.html.twig Default theme implementation to display a preview of an image style.
ImageAdminStylesTest::testPreviewImageShowInPrivateScheme function core/modules/image/tests/src/Functional/ImageAdminStylesTest.php Tests the display of preview images using a private scheme.
ImageFieldTestBase::previewNodeImage function core/modules/image/tests/src/Functional/ImageFieldTestBase.php Preview an image in a node.
LayoutBuilderBlocksTest::testPreviewAwarePlugins function core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php Tests preview-aware layout & block plugins.
LayoutBuilderTest::testPreviewAwareTemplates function core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php Tests preview-aware templates.
LayoutDefault::$inPreview property core/lib/Drupal/Core/Layout/LayoutDefault.php Whether the plugin is being rendered in preview mode.
LayoutDefault::setInPreview function core/lib/Drupal/Core/Layout/LayoutDefault.php Set preview mode for the plugin.
LayoutPreviewAccessAllowed class core/modules/layout_builder/src/Access/LayoutPreviewAccessAllowed.php Accessible class to allow access for inline blocks in the Layout Builder.
LayoutPreviewAccessAllowed.php file core/modules/layout_builder/src/Access/LayoutPreviewAccessAllowed.php
LayoutPreviewAccessAllowed::access function core/modules/layout_builder/src/Access/LayoutPreviewAccessAllowed.php Checks data value access.
MediaFilterController::preview function core/modules/media/src/Controller/MediaFilterController.php Returns a HTML response containing a preview of the text after filtering.
MediaPreviewTest class core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php @coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Media
@group ckeditor5
@group #slow
@internal
MediaPreviewTest.php file core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php
MediaPreviewTest::previewAccessProvider function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php Data provider for ::testEmbedPreviewAccess.
MediaPreviewTest::testEmbedPreviewAccess function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php Tests preview route access.
MediaPreviewTest::testErrorMessages function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php Tests that failed media embed preview requests inform the end user.
MediaPreviewTest::testMediaPointerEvent function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php Ensure media preview isn't clickable.
MediaPreviewTest::testPreviewUsesDefaultThemeAndIsClientCacheable function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaPreviewTest.php The CKEditor Widget must load a preview generated using the default theme.
MediaTestBase::getLastPreviewRequestTransferSize function core/modules/ckeditor5/tests/src/FunctionalJavascript/MediaTestBase.php Gets the transfer size of the last preview request.
MessageForm::preview function core/modules/contact/src/MessageForm.php Form submission handler for the 'preview' action.
ModuleTest::testViewsPreview function core/modules/views/tests/src/Kernel/ModuleTest.php Tests the \Drupal\views\ViewsExecutable::preview() method.
NavigationSectionStorage::getContextsDuringPreview function core/modules/navigation/src/Plugin/SectionStorage/NavigationSectionStorage.php Gets contexts for use during preview.
node-preview-container.css file core/themes/olivero/css/components/node-preview-container.css Node preview container styling.
node-preview-container.pcss.css file core/themes/olivero/css/components/node-preview-container.pcss.css Node preview container styling.
node-preview.css file core/profiles/demo_umami/themes/umami/css/components/content/node-preview.css This file is used for node preview styling.
node-preview.css file core/themes/claro/css/components/node-preview.css /*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/

.node-preview-container {
position: sticky;
z-index: 499;
display: flex;
align-items: center;
node-preview.pcss.css file core/themes/claro/css/components/node-preview.pcss.css .node-preview-container {
position: sticky;
z-index: 499;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
}

.node-preview-form-select {
display: flex;
align-items: center;

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