FieldBlock.php
Same filename in this branch
Same filename in other branches
- 8.9.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
- 8.9.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php
- 10 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
- 10 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php
- 11.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
- 11.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php
Namespace
Drupal\layout_builder_fieldblock_test\Plugin\BlockFile
-
core/
modules/ layout_builder/ tests/ modules/ layout_builder_fieldblock_test/ src/ Plugin/ Block/ FieldBlock.php
View source
<?php
namespace Drupal\layout_builder_fieldblock_test\Plugin\Block;
use Drupal\layout_builder\Plugin\Block\FieldBlock as LayoutBuilderFieldBlock;
/**
* Provides test field block to test with Block UI.
*
* \Drupal\Tests\layout_builder\FunctionalJavascript\FieldBlockTest provides
* test coverage of complex AJAX interactions within certain field blocks.
* layout_builder_plugin_filter_block__block_ui_alter() removes certain blocks
* with 'layout_builder' as the provider. To make these blocks available during
* testing, this plugin uses the same deriver but each derivative will have a
* different provider.
*
* @Block(
* id = "field_block_test",
* deriver = "\Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver",
* )
*
* @see \Drupal\Tests\layout_builder\FunctionalJavascript\FieldBlockTest
* @see layout_builder_plugin_filter_block__block_ui_alter()
*/
class FieldBlock extends LayoutBuilderFieldBlock {
}
Classes
Title | Deprecated | Summary |
---|---|---|
FieldBlock | Provides test field block to test with Block UI. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.