class TestMultipleFormsBlock

Same name in other branches
  1. 9 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestMultipleFormsBlock.php \Drupal\block_test\Plugin\Block\TestMultipleFormsBlock
  2. 10 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestMultipleFormsBlock.php \Drupal\block_test\Plugin\Block\TestMultipleFormsBlock
  3. 11.x core/modules/block/tests/modules/block_test/src/Plugin/Block/TestMultipleFormsBlock.php \Drupal\block_test\Plugin\Block\TestMultipleFormsBlock

Provides a block with multiple forms.

Plugin annotation


@Block(
  id = "test_multiple_forms_block",
  forms = {
    "secondary" = "\Drupal\block_test\PluginForm\EmptyBlockForm"
  },
  admin_label = @Translation("Multiple forms test block")
)

Hierarchy

Expanded class hierarchy of TestMultipleFormsBlock

File

core/modules/block/tests/modules/block_test/src/Plugin/Block/TestMultipleFormsBlock.php, line 18

Namespace

Drupal\block_test\Plugin\Block
View source
class TestMultipleFormsBlock extends BlockBase {
    
    /**
     * {@inheritdoc}
     */
    public function build() {
        return [];
    }

}

Members

Title Sort descending Modifiers Object type Summary
TestMultipleFormsBlock::build public function

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