class FieldBlock
Same name in this branch
- 10 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
Same name in other branches
- 9 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
- 9 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock
- 8.9.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
- 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
- 11.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php \Drupal\layout_builder\Plugin\Block\FieldBlock
- 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.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Block\BlockBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\PluginWithFormsInterface, \Drupal\Core\Plugin\PreviewAwarePluginInterface, \Drupal\Core\Render\PreviewFallbackInterface, \Drupal\Core\Plugin\ContextAwarePluginInterface uses \Drupal\Core\Block\BlockPluginTrait, \Drupal\Core\Plugin\ContextAwarePluginTrait, \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
- class \Drupal\layout_builder\Plugin\Block\FieldBlock extends \Drupal\Core\Block\BlockBase implements \Drupal\Core\Plugin\ContextAwarePluginInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface uses \Drupal\field\FieldLabelOptionsTrait
- class \Drupal\layout_builder_fieldblock_test\Plugin\Block\FieldBlock extends \Drupal\layout_builder\Plugin\Block\FieldBlock
- class \Drupal\layout_builder\Plugin\Block\FieldBlock extends \Drupal\Core\Block\BlockBase implements \Drupal\Core\Plugin\ContextAwarePluginInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface uses \Drupal\field\FieldLabelOptionsTrait
- class \Drupal\Core\Block\BlockBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Block\BlockPluginInterface, \Drupal\Core\Plugin\PluginWithFormsInterface, \Drupal\Core\Plugin\PreviewAwarePluginInterface, \Drupal\Core\Render\PreviewFallbackInterface, \Drupal\Core\Plugin\ContextAwarePluginInterface uses \Drupal\Core\Block\BlockPluginTrait, \Drupal\Core\Plugin\ContextAwarePluginTrait, \Drupal\Core\Plugin\ContextAwarePluginAssignmentTrait
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
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 22
Namespace
Drupal\layout_builder_fieldblock_test\Plugin\BlockView source
class FieldBlock extends LayoutBuilderFieldBlock {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.