You are here

class FieldBlock in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock
  2. 9 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock

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.

Plugin annotation


@Block(
  id = "field_block_test",
  deriver = "\Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver",
)

Hierarchy

  • class \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock extends \Drupal\layout_builder\Plugin\Block\FieldBlock

Expanded class hierarchy of FieldBlock

See also

\Drupal\Tests\layout_builder\FunctionalJavascript\FieldBlockTest

layout_builder_plugin_filter_block__block_ui_alter()

File

core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php, line 25

Namespace

Drupal\layout_builder_fieldblock_test\Plugin\Block
View source
class FieldBlock extends LayoutBuilderFieldBlock {

}

Members