Issue #3273317 by clayfreeman, larowlan, tim.plunkett, danflanagan8: Add 'in_preview' variable to block and layout templates
parent
112631ae46
commit
00243d37a6
|
@ -51,6 +51,7 @@ class LayoutDefault extends PluginBase implements LayoutInterface, PluginFormInt
|
||||||
$build[$region_name] = $regions[$region_name];
|
$build[$region_name] = $regions[$region_name];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$build['#in_preview'] = $this->inPreview;
|
||||||
$build['#settings'] = $this->getConfiguration();
|
$build['#settings'] = $this->getConfiguration();
|
||||||
$build['#layout'] = $this->pluginDefinition;
|
$build['#layout'] = $this->pluginDefinition;
|
||||||
$build['#theme'] = $this->pluginDefinition->getThemeHook();
|
$build['#theme'] = $this->pluginDefinition->getThemeHook();
|
||||||
|
|
|
@ -246,6 +246,7 @@ function template_preprocess_block(&$variables) {
|
||||||
$variables['plugin_id'] = $variables['elements']['#plugin_id'];
|
$variables['plugin_id'] = $variables['elements']['#plugin_id'];
|
||||||
$variables['base_plugin_id'] = $variables['elements']['#base_plugin_id'];
|
$variables['base_plugin_id'] = $variables['elements']['#base_plugin_id'];
|
||||||
$variables['derivative_plugin_id'] = $variables['elements']['#derivative_plugin_id'];
|
$variables['derivative_plugin_id'] = $variables['elements']['#derivative_plugin_id'];
|
||||||
|
$variables['in_preview'] = $variables['elements']['#in_preview'] ?? FALSE;
|
||||||
$variables['label'] = !empty($variables['configuration']['label_display']) ? $variables['configuration']['label'] : '';
|
$variables['label'] = !empty($variables['configuration']['label_display']) ? $variables['configuration']['label'] : '';
|
||||||
$variables['content'] = $variables['elements']['content'];
|
$variables['content'] = $variables['elements']['content'];
|
||||||
// A block's label is configuration: it is static. Allow dynamic labels to be
|
// A block's label is configuration: it is static. Allow dynamic labels to be
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -143,6 +143,7 @@ class FieldLayoutBuilderTest extends UnitTestCase {
|
||||||
'#markup' => 'Test1',
|
'#markup' => 'Test1',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
'#in_preview' => FALSE,
|
||||||
'#settings' => [
|
'#settings' => [
|
||||||
'label' => '',
|
'label' => '',
|
||||||
],
|
],
|
||||||
|
@ -243,6 +244,7 @@ class FieldLayoutBuilderTest extends UnitTestCase {
|
||||||
'#process' => ['\Drupal\Core\Render\Element\RenderElement::processGroup'],
|
'#process' => ['\Drupal\Core\Render\Element\RenderElement::processGroup'],
|
||||||
'#pre_render' => ['\Drupal\Core\Render\Element\RenderElement::preRenderGroup'],
|
'#pre_render' => ['\Drupal\Core\Render\Element\RenderElement::preRenderGroup'],
|
||||||
],
|
],
|
||||||
|
'#in_preview' => FALSE,
|
||||||
'#settings' => [
|
'#settings' => [
|
||||||
'label' => '',
|
'label' => '',
|
||||||
],
|
],
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Default theme implementation for a four-column 25%-25%-25%-25% layout.
|
* Default theme implementation for a four-column 25%-25%-25%-25% layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Default theme implementation for a three-column layout.
|
* Default theme implementation for a three-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Default theme implementation to display a two-column layout.
|
* Default theme implementation to display a two-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -124,6 +124,7 @@ class BlockComponentRenderArray implements EventSubscriberInterface {
|
||||||
'#plugin_id' => $block->getPluginId(),
|
'#plugin_id' => $block->getPluginId(),
|
||||||
'#base_plugin_id' => $block->getBaseId(),
|
'#base_plugin_id' => $block->getBaseId(),
|
||||||
'#derivative_plugin_id' => $block->getDerivativeId(),
|
'#derivative_plugin_id' => $block->getDerivativeId(),
|
||||||
|
'#in_preview' => $event->inPreview(),
|
||||||
'#weight' => $event->getComponent()->getWeight(),
|
'#weight' => $event->getComponent()->getWeight(),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -131,3 +131,14 @@ function layout_builder_test_module_implements_alter(&$implementations, $hook) {
|
||||||
] + $implementations;
|
] + $implementations;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Implements hook_theme().
|
||||||
|
*/
|
||||||
|
function layout_builder_test_theme() {
|
||||||
|
return [
|
||||||
|
'block__preview_aware_block' => [
|
||||||
|
'base hook' => 'block',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
{% if in_preview %}
|
||||||
|
The block template is being previewed.
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% include '@block/block.html.twig' %}
|
|
@ -719,15 +719,47 @@ class LayoutBuilderTest extends BrowserTestBase {
|
||||||
$page->pressButton('Add block');
|
$page->pressButton('Add block');
|
||||||
|
|
||||||
$assert_session->elementExists('css', '.go-birds-preview');
|
$assert_session->elementExists('css', '.go-birds-preview');
|
||||||
|
$assert_session->pageTextContains('The block template is being previewed.');
|
||||||
$assert_session->pageTextContains('This block is being rendered in preview mode.');
|
$assert_session->pageTextContains('This block is being rendered in preview mode.');
|
||||||
|
|
||||||
$page->pressButton('Save layout');
|
$page->pressButton('Save layout');
|
||||||
$this->drupalGet('node/1');
|
$this->drupalGet('node/1');
|
||||||
|
|
||||||
$assert_session->elementNotExists('css', '.go-birds-preview');
|
$assert_session->elementNotExists('css', '.go-birds-preview');
|
||||||
|
$assert_session->pageTextNotContains('The block template is being previewed.');
|
||||||
$assert_session->pageTextContains('This block is being rendered normally.');
|
$assert_session->pageTextContains('This block is being rendered normally.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests preview-aware templates.
|
||||||
|
*/
|
||||||
|
public function testPreviewAwareTemplates() {
|
||||||
|
$assert_session = $this->assertSession();
|
||||||
|
$page = $this->getSession()->getPage();
|
||||||
|
|
||||||
|
$this->drupalLogin($this->drupalCreateUser([
|
||||||
|
'configure any layout',
|
||||||
|
'administer node display',
|
||||||
|
]));
|
||||||
|
|
||||||
|
$this->drupalGet('admin/structure/types/manage/bundle_with_section_field/display/default');
|
||||||
|
$this->submitForm(['layout[enabled]' => TRUE], 'Save');
|
||||||
|
$page->clickLink('Manage layout');
|
||||||
|
$page->clickLink('Add section');
|
||||||
|
$page->clickLink('1 column layout');
|
||||||
|
$page->pressButton('Add section');
|
||||||
|
$page->clickLink('Add block');
|
||||||
|
$page->clickLink('Preview-aware block');
|
||||||
|
$page->pressButton('Add block');
|
||||||
|
|
||||||
|
$assert_session->pageTextContains('This is a preview, indeed');
|
||||||
|
|
||||||
|
$page->pressButton('Save layout');
|
||||||
|
$this->drupalGet('node/1');
|
||||||
|
|
||||||
|
$assert_session->pageTextNotContains('This is a preview, indeed');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the interaction between full and default view modes.
|
* Tests the interaction between full and default view modes.
|
||||||
*
|
*
|
||||||
|
|
|
@ -120,6 +120,7 @@ class BlockComponentRenderArrayTest extends UnitTestCase {
|
||||||
'#base_plugin_id' => 'block_plugin_id',
|
'#base_plugin_id' => 'block_plugin_id',
|
||||||
'#derivative_plugin_id' => NULL,
|
'#derivative_plugin_id' => NULL,
|
||||||
'content' => $block_content,
|
'content' => $block_content,
|
||||||
|
'#in_preview' => FALSE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$expected_build_with_expected_cache = $expected_build + [
|
$expected_build_with_expected_cache = $expected_build + [
|
||||||
|
@ -195,6 +196,7 @@ class BlockComponentRenderArrayTest extends UnitTestCase {
|
||||||
'#base_plugin_id' => 'block_plugin_id',
|
'#base_plugin_id' => 'block_plugin_id',
|
||||||
'#derivative_plugin_id' => NULL,
|
'#derivative_plugin_id' => NULL,
|
||||||
'content' => $block_content,
|
'content' => $block_content,
|
||||||
|
'#in_preview' => FALSE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$expected_cache = $expected_build + [
|
$expected_cache = $expected_build + [
|
||||||
|
@ -324,6 +326,7 @@ class BlockComponentRenderArrayTest extends UnitTestCase {
|
||||||
'#attributes' => [
|
'#attributes' => [
|
||||||
'data-layout-content-preview-placeholder-label' => $placeholder_label,
|
'data-layout-content-preview-placeholder-label' => $placeholder_label,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => TRUE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$expected_cache = $expected_build + [
|
$expected_cache = $expected_build + [
|
||||||
|
@ -332,6 +335,7 @@ class BlockComponentRenderArrayTest extends UnitTestCase {
|
||||||
'tags' => ['test'],
|
'tags' => ['test'],
|
||||||
'max-age' => 0,
|
'max-age' => 0,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => TRUE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$subscriber->onBuildRender($event);
|
$subscriber->onBuildRender($event);
|
||||||
|
@ -383,6 +387,7 @@ class BlockComponentRenderArrayTest extends UnitTestCase {
|
||||||
'#attributes' => [
|
'#attributes' => [
|
||||||
'data-layout-content-preview-placeholder-label' => $placeholder_string,
|
'data-layout-content-preview-placeholder-label' => $placeholder_string,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => TRUE,
|
||||||
];
|
];
|
||||||
$expected_build['content']['#markup'] = $placeholder_string;
|
$expected_build['content']['#markup'] = $placeholder_string;
|
||||||
|
|
||||||
|
@ -392,6 +397,7 @@ class BlockComponentRenderArrayTest extends UnitTestCase {
|
||||||
'tags' => ['test'],
|
'tags' => ['test'],
|
||||||
'max-age' => 0,
|
'max-age' => 0,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => TRUE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$subscriber->onBuildRender($event);
|
$subscriber->onBuildRender($event);
|
||||||
|
|
|
@ -115,6 +115,7 @@ class SectionRenderTest extends UnitTestCase {
|
||||||
'tags' => [],
|
'tags' => [],
|
||||||
'max-age' => -1,
|
'max-age' => -1,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => FALSE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$block = $this->prophesize(BlockPluginInterface::class)->willImplement(PreviewFallbackInterface::class);
|
$block = $this->prophesize(BlockPluginInterface::class)->willImplement(PreviewFallbackInterface::class);
|
||||||
|
@ -198,6 +199,7 @@ class SectionRenderTest extends UnitTestCase {
|
||||||
'tags' => [],
|
'tags' => [],
|
||||||
'max-age' => 0,
|
'max-age' => 0,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => TRUE,
|
||||||
];
|
];
|
||||||
$block = $this->prophesize(BlockPluginInterface::class)->willImplement(PreviewFallbackInterface::class);
|
$block = $this->prophesize(BlockPluginInterface::class)->willImplement(PreviewFallbackInterface::class);
|
||||||
$this->blockManager->createInstance('block_plugin_id', ['id' => 'block_plugin_id'])->willReturn($block->reveal());
|
$this->blockManager->createInstance('block_plugin_id', ['id' => 'block_plugin_id'])->willReturn($block->reveal());
|
||||||
|
@ -254,6 +256,7 @@ class SectionRenderTest extends UnitTestCase {
|
||||||
'tags' => [],
|
'tags' => [],
|
||||||
'max-age' => -1,
|
'max-age' => -1,
|
||||||
],
|
],
|
||||||
|
'#in_preview' => FALSE,
|
||||||
];
|
];
|
||||||
|
|
||||||
$block = $this->prophesize(BlockPluginInterface::class)
|
$block = $this->prophesize(BlockPluginInterface::class)
|
||||||
|
|
|
@ -34,11 +34,12 @@ function layout_discovery_theme() {
|
||||||
* @param array &$variables
|
* @param array &$variables
|
||||||
* An associative array containing:
|
* An associative array containing:
|
||||||
* - content: An associative array containing the properties of the element.
|
* - content: An associative array containing the properties of the element.
|
||||||
* Properties used: #settings, #layout.
|
* Properties used: #settings, #layout, #in_preview.
|
||||||
*/
|
*/
|
||||||
function template_preprocess_layout(&$variables) {
|
function template_preprocess_layout(&$variables) {
|
||||||
$variables['settings'] = $variables['content']['#settings'] ?? [];
|
$variables['settings'] = $variables['content']['#settings'] ?? [];
|
||||||
$variables['layout'] = $variables['content']['#layout'] ?? [];
|
$variables['layout'] = $variables['content']['#layout'] ?? [];
|
||||||
|
$variables['in_preview'] = $variables['content']['#in_preview'] ?? FALSE;
|
||||||
|
|
||||||
// Create an attributes variable for each region.
|
// Create an attributes variable for each region.
|
||||||
foreach (Element::children($variables['content']) as $name) {
|
foreach (Element::children($variables['content']) as $name) {
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Default theme implementation to display a one-column layout.
|
* Default theme implementation to display a one-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* additional areas for the top and the bottom.
|
* additional areas for the top and the bottom.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* additional areas for the top and the bottom.
|
* additional areas for the top and the bottom.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Default theme implementation to display a two-column layout.
|
* Default theme implementation to display a two-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* the top, bottom and in the middle.
|
* the top, bottom and in the middle.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -5,6 +5,9 @@
|
||||||
*/
|
*/
|
||||||
#}
|
#}
|
||||||
<div{{ attributes.addClass('layout-example-1col', 'clearfix') }}>
|
<div{{ attributes.addClass('layout-example-1col', 'clearfix') }}>
|
||||||
|
{% if in_preview %}
|
||||||
|
This is a preview, indeed
|
||||||
|
{% endif %}
|
||||||
<div {{ region_attributes.top.addClass('region-top') }}>
|
<div {{ region_attributes.top.addClass('region-top') }}>
|
||||||
{{ content.top }}
|
{{ content.top }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Default theme implementation to display a one plus four grid layout.
|
* Default theme implementation to display a one plus four grid layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*
|
*
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template. Includes:
|
* be added to the main container tag of this template. Includes:
|
||||||
|
|
|
@ -842,10 +842,10 @@ class ConfirmClassyCopiesTest extends KernelTestBase {
|
||||||
'views-view-grid.html.twig' => '8f4ea66bf949530d31a79a44f3d87650',
|
'views-view-grid.html.twig' => '8f4ea66bf949530d31a79a44f3d87650',
|
||||||
'views-view-rss.html.twig' => 'f4e49d0d8df01019245c51ff2a4259c2',
|
'views-view-rss.html.twig' => 'f4e49d0d8df01019245c51ff2a4259c2',
|
||||||
'block--system-branding-block.html.twig' => '558d83af4c06e78f46790e0e18295588',
|
'block--system-branding-block.html.twig' => '558d83af4c06e78f46790e0e18295588',
|
||||||
'block--search-form-block.html.twig' => '7fef4c274e4487ba887fdeaa41acb5ca',
|
'block--search-form-block.html.twig' => '4e9d433b954dcea12b307f9edcbbe764',
|
||||||
'block.html.twig' => '9b68163e596c63921119ff8f20c6f157',
|
'block.html.twig' => 'c1bce6c31368c08f6f93c687e872f055',
|
||||||
'block--local-actions-block.html.twig' => '6afe8adb14d3f37ec374400fecd5b809',
|
'block--local-actions-block.html.twig' => '6afe8adb14d3f37ec374400fecd5b809',
|
||||||
'block--system-menu-block.html.twig' => '242f41ff8a0f71bbccece61bf8e29e2f',
|
'block--system-menu-block.html.twig' => '084931fef1422cf11a38170702677b0f',
|
||||||
'block--local-tasks-block.html.twig' => 'd462897ef5c9b6935ce801de122bce30',
|
'block--local-tasks-block.html.twig' => 'd462897ef5c9b6935ce801de122bce30',
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
@ -30,6 +30,7 @@ class LayoutDefaultTest extends UnitTestCase {
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
$expected += [
|
$expected += [
|
||||||
|
'#in_preview' => FALSE,
|
||||||
'#settings' => [
|
'#settings' => [
|
||||||
'label' => '',
|
'label' => '',
|
||||||
],
|
],
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - content_attributes: A list of HTML attributes applied to the main content
|
* - content_attributes: A list of HTML attributes applied to the main content
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template. Includes:
|
* be added to the main container tag of this template. Includes:
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template. Includes:
|
* be added to the main container tag of this template. Includes:
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - content_attributes: A list of HTML attributes applied to the main content
|
* - content_attributes: A list of HTML attributes applied to the main content
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template. Includes:
|
* be added to the main container tag of this template. Includes:
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override for a four-column 25%-25%-25%-25% layout.
|
* Theme override for a four-column 25%-25%-25%-25% layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override for a three-column layout.
|
* Theme override for a three-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override to display a two-column layout.
|
* Theme override to display a two-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override to display a one-column layout.
|
* Theme override to display a one-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* additional areas for the top and the bottom.
|
* additional areas for the top and the bottom.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* additional areas for the top and the bottom.
|
* additional areas for the top and the bottom.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* the top, bottom and in the middle.
|
* the top, bottom and in the middle.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override to display a two-column layout.
|
* Theme override to display a two-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override for a four-column 25%-25%-25%-25% layout.
|
* Theme override for a four-column 25%-25%-25%-25% layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override for a three-column layout.
|
* Theme override for a three-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override to display a two-column layout.
|
* Theme override to display a two-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override to display a one-column layout.
|
* Theme override to display a one-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* additional areas for the top and the bottom.
|
* additional areas for the top and the bottom.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* additional areas for the top and the bottom.
|
* additional areas for the top and the bottom.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* Theme override to display a two-column layout.
|
* Theme override to display a two-column layout.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
* the top, bottom and in the middle.
|
* the top, bottom and in the middle.
|
||||||
*
|
*
|
||||||
* Available variables:
|
* Available variables:
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content for this layout.
|
* - content: The content for this layout.
|
||||||
* - attributes: HTML attributes for the layout <div>.
|
* - attributes: HTML attributes for the layout <div>.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: A list HTML attributes populated by modules, intended to
|
* - attributes: A list HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template. Includes:
|
* be added to the main container tag of this template. Includes:
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: HTML attributes for the containing element.
|
* - attributes: HTML attributes for the containing element.
|
||||||
* - id: A valid HTML ID and guaranteed unique.
|
* - id: A valid HTML ID and guaranteed unique.
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
* - label_display: The display settings for the label.
|
* - label_display: The display settings for the label.
|
||||||
* - provider: The module or other provider that provided this block plugin.
|
* - provider: The module or other provider that provided this block plugin.
|
||||||
* - Block plugin specific settings will also be stored here.
|
* - Block plugin specific settings will also be stored here.
|
||||||
|
* - in_preview: Whether the plugin is being rendered in preview mode.
|
||||||
* - content: The content of this block.
|
* - content: The content of this block.
|
||||||
* - attributes: array of HTML attributes populated by modules, intended to
|
* - attributes: array of HTML attributes populated by modules, intended to
|
||||||
* be added to the main container tag of this template.
|
* be added to the main container tag of this template.
|
||||||
|
|
Loading…
Reference in New Issue