Search for preview

  1. Search 7.x for preview
  2. Search 8.9.x for preview
  3. Search 10.3.x for preview
  4. Search 11.x for preview
  5. Other projects
Title Object type File name Summary
access_check.node.preview service core/modules/node/node.services.yml Drupal\node\Access\NodePreviewAccessCheck
block--preview-aware-block.html.twig file core/modules/layout_builder/tests/modules/layout_builder_test/templates/block--preview-aware-block.html.twig {% if in_preview %}
The block template is being previewed.
{% endif %}

{% include '@block/block.html.twig' %}
BlockComponentRenderArrayTest::testOnBuildRenderInPreview function core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php @covers ::onBuildRender
BlockComponentRenderArrayTest::testOnBuildRenderInPreviewEmptyBuild function core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php @covers ::onBuildRender
BlockComponentRenderArrayTest::testOnBuildRenderWithoutPreviewFallbackString function core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php @covers ::onBuildRender
BlockPluginTrait::$inPreview property core/lib/Drupal/Core/Block/BlockPluginTrait.php Whether the plugin is being rendered in preview mode.
BlockPluginTrait::getPreviewFallbackString function core/lib/Drupal/Core/Block/BlockPluginTrait.php
BlockPluginTrait::setInPreview function core/lib/Drupal/Core/Block/BlockPluginTrait.php
ColorSafePreviewTest class core/modules/color/tests/src/Functional/ColorSafePreviewTest.php Tests sanitizing color preview loaded from theme.
ColorSafePreviewTest.php file core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
ColorSafePreviewTest::$bigUser property core/modules/color/tests/src/Functional/ColorSafePreviewTest.php A user with administrative permissions.
ColorSafePreviewTest::$defaultTheme property core/modules/color/tests/src/Functional/ColorSafePreviewTest.php The theme to install as the default for testing.
ColorSafePreviewTest::$modules property core/modules/color/tests/src/Functional/ColorSafePreviewTest.php Modules to enable.
ColorSafePreviewTest::setUp function core/modules/color/tests/src/Functional/ColorSafePreviewTest.php
ColorSafePreviewTest::testColorPreview function core/modules/color/tests/src/Functional/ColorSafePreviewTest.php Ensures color preview.html is sanitized.
CommentForm::preview function core/modules/comment/src/CommentForm.php Form submission handler for the 'preview' action.
CommentPreviewTest class core/modules/comment/tests/src/Functional/CommentPreviewTest.php Tests comment preview.
CommentPreviewTest.php file core/modules/comment/tests/src/Functional/CommentPreviewTest.php
CommentPreviewTest::$defaultTheme property core/modules/comment/tests/src/Functional/CommentPreviewTest.php The theme to install as the default for testing.
CommentPreviewTest::$modules property core/modules/comment/tests/src/Functional/CommentPreviewTest.php Modules to install.
CommentPreviewTest::testCommentEditPreviewSave function core/modules/comment/tests/src/Functional/CommentPreviewTest.php Tests comment edit, preview, and save.
CommentPreviewTest::testCommentPreview function core/modules/comment/tests/src/Functional/CommentPreviewTest.php Tests comment preview.
CommentPreviewTest::testCommentPreviewDuplicateSubmission function core/modules/comment/tests/src/Functional/CommentPreviewTest.php Tests comment preview.
CommentTestBase::setCommentPreview function core/modules/comment/tests/src/Functional/CommentTestBase.php Sets the value governing the previewing mode for the comment form.
comment_preview function core/modules/comment/comment.module Generates a comment preview.
ContentPreviewToggleTest class core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Tests toggling of content preview.
ContentPreviewToggleTest.php file core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php
ContentPreviewToggleTest::$defaultTheme property core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php The theme to install as the default for testing.
ContentPreviewToggleTest::$modules property core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Modules to enable.
ContentPreviewToggleTest::assertContextualLinks function core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Checks if contextual links are working properly.
ContentPreviewToggleTest::assertOrderInPage function core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Asserts that blocks in a given order in the page.
ContentPreviewToggleTest::setUp function core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php
ContentPreviewToggleTest::testContentPreviewToggle function core/modules/layout_builder/tests/src/FunctionalJavascript/ContentPreviewToggleTest.php Tests the content preview toggle.
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Gets contexts for use during preview.
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContextsDuringPreview
DenyNodePreview class core/modules/node/src/PageCache/DenyNodePreview.php Cache policy for node preview page.
DenyNodePreview.php file core/modules/node/src/PageCache/DenyNodePreview.php
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.

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