FieldBlock.php

Same filename in this branch
  1. 9 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
Same filename and directory in other branches
  1. 8.9.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
  2. 8.9.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php
  3. 10 core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
  4. 10 core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php
  5. 11.x core/modules/layout_builder/src/Plugin/Block/FieldBlock.php
  6. 11.x core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/Plugin/Block/FieldBlock.php

Namespace

Drupal\layout_builder_fieldblock_test\Plugin\Block

File

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.