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
PreviewToggleTrait trait core/modules/layout_builder/src/Form/PreviewToggleTrait.php Provides a trait that provides a toggle for the content preview.
PreviewToggleTrait.php file core/modules/layout_builder/src/Form/PreviewToggleTrait.php
PreviewToggleTrait::buildContentPreviewToggle function core/modules/layout_builder/src/Form/PreviewToggleTrait.php Builds the content preview toggle input.
PreviewToggleTrait::currentUser function core/modules/layout_builder/src/Form/PreviewToggleTrait.php Gets the current user.
RestExport::preview function core/modules/rest/src/Plugin/views/display/RestExport.php The DisplayPluginBase preview method assumes we will be returning a render
array. The data plugin will already return the serialized string.
SectionComponentBuildRenderArrayEvent::$inPreview property core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php Whether the component is in preview mode or not.
SectionComponentBuildRenderArrayEvent::inPreview function core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php Determine if the component is in preview mode.
SectionRenderTest::testToRenderArrayPreview function core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php @covers ::toRenderArray
SectionStorageBase::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php Gets contexts for use during preview.
SectionStorageInterface::getContextsDuringPreview function core/modules/layout_builder/src/SectionStorageInterface.php Gets contexts for use during preview.
SimpleConfigSectionStorage::getContextsDuringPreview function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php Gets contexts for use during preview.
StyleSerializerTest::testLivePreview function core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php Tests the live preview output for json output.
StyleTestBase::storeViewPreview function core/modules/views/tests/src/Kernel/Plugin/StyleTestBase.php Stores a view output in the elements.
template_preprocess_image_style_preview function core/modules/image/image.admin.inc Prepares variables for image style preview templates.
template_preprocess_views_ui_view_preview_section function core/modules/views_ui/views_ui.theme.inc Prepares variables for views UI view preview section templates.
TermKernelTest::testTermPreview function core/modules/taxonomy/tests/src/Kernel/TermKernelTest.php Tests that a Term is renderable when unsaved (preview).
TestMediaFilterController::preview function core/modules/media/tests/modules/media_test_embed/src/Controller/TestMediaFilterController.php Returns a HTML response containing a preview of the text after filtering.
TriggerPreviewCommand class core/modules/views/src/Ajax/TriggerPreviewCommand.php Provides an AJAX command for triggering the views live preview.
TriggerPreviewCommand.php file core/modules/views/src/Ajax/TriggerPreviewCommand.php
TriggerPreviewCommand::render function core/modules/views/src/Ajax/TriggerPreviewCommand.php Return an array to be run through json_encode and sent to the client.
UnsavedPreviewTest class core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php Tests covering Preview of unsaved Views.
UnsavedPreviewTest.php file core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php
UnsavedPreviewTest::$adminUser property core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php An admin user with the 'administer views' permission.
UnsavedPreviewTest::$defaultTheme property core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php The theme to install as the default for testing.
UnsavedPreviewTest::$modules property core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php Modules to enable.
UnsavedPreviewTest::$testViews property core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php Views used by this test.
UnsavedPreviewTest::setUp function core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php Sets up a Drupal site for running functional and integration tests.
UnsavedPreviewTest::testUnsavedPageDisplayPreview function core/modules/views_ui/tests/src/Functional/UnsavedPreviewTest.php Tests previews of unsaved new page displays.
ViewExecutable::$preview property core/modules/views/src/ViewExecutable.php If this view has been previewed.
ViewExecutable::preview function core/modules/views/src/ViewExecutable.php Previews the given display, with the given arguments.
ViewExecutableTest::testCacheIsIgnoredDuringPreview function core/modules/views/tests/src/Unit/ViewExecutableTest.php @covers ::execute
ViewPreviewForm class core/modules/views_ui/src/ViewPreviewForm.php Form controller for the Views preview form.
ViewPreviewForm.php file core/modules/views_ui/src/ViewPreviewForm.php
ViewPreviewForm::actions function core/modules/views_ui/src/ViewPreviewForm.php Returns an array of supported actions for the current entity form.
ViewPreviewForm::form function core/modules/views_ui/src/ViewPreviewForm.php Gets the actual form array to be built.
ViewPreviewForm::submitPreview function core/modules/views_ui/src/ViewPreviewForm.php Form submission handler for the Preview button.
views-ui-view-preview-section--exposed.html.twig file core/themes/claro/templates/views/views-ui-view-preview-section--exposed.html.twig Theme override for a views UI preview section.
views-ui-view-preview-section.html.twig file core/themes/stable9/templates/admin/views-ui-view-preview-section.html.twig Theme override for a views UI preview section.
views-ui-view-preview-section.html.twig file core/themes/stable/templates/admin/views-ui-view-preview-section.html.twig Theme override for a views UI preview section.
views-ui-view-preview-section.html.twig file core/modules/views_ui/templates/views-ui-view-preview-section.html.twig Default theme implementation for a views UI preview section.
views.view.test_preview.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview.yml
views.view.test_preview_error.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview_error.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_preview_error.yml
ViewsBlockBase::getPreviewFallbackString function core/modules/views/src/Plugin/Block/ViewsBlockBase.php
ViewsBlockTest::testGetPreviewFallbackString function core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php Tests that ViewsBlock::getPreviewFallbackString() produces the right value.
views_ui_test_views_preview_info_alter function core/modules/views_ui/tests/modules/views_ui_test/views_ui_test.module Implements hook_views_preview_info_alter().
views_ui_theme_suggestions_views_ui_view_preview_section function core/modules/views_ui/views_ui.module Implements hook_theme_suggestions_HOOK().
views_ui_view_preview_section_display_category_links function core/modules/views_ui/views_ui.module Returns a link to editing a certain display setting.
views_ui_view_preview_section_handler_links function core/modules/views_ui/views_ui.module Returns contextual links for each handler of a certain section.
views_ui_view_preview_section_rows_links function core/modules/views_ui/views_ui.module Returns all contextual links for the main content part of the view.
ViewUI::$live_preview property core/modules/views_ui/src/ViewUI.php Is the view run in a context of the preview in the admin interface.

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