class FieldBlock

Same name in this branch
  1. 9 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
Same name in other branches
  1. 8.9.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
  2. 8.9.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock
  3. 10 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
  4. 10 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock
  5. 11.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
  6. 11.x 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

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 {

}

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