function TestAccessBlock::__construct
Same name in other branches
- 9 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php \Drupal\block_test\Plugin\Block\TestAccessBlock::__construct()
- 8.9.x core/modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php \Drupal\block_test\Plugin\Block\TestAccessBlock::__construct()
- 10 core/modules/block/tests/modules/block_test/src/Plugin/Block/TestAccessBlock.php \Drupal\block_test\Plugin\Block\TestAccessBlock::__construct()
Tests the test access block.
Parameters
array $configuration: The plugin configuration, i.e. an array with configuration values keyed by configuration option name. The special key 'context' may be used to initialize the defined contexts by setting it to an array of context values keyed by context names.
string $plugin_id: The plugin ID for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\KeyValueStore\KeyValueStoreInterface $keyValue: The key value store.
Overrides BlockPluginTrait::__construct
File
-
core/
modules/ block/ tests/ modules/ block_test/ src/ Plugin/ Block/ TestAccessBlock.php, line 41
Class
- TestAccessBlock
- Provides a block to test access.
Namespace
Drupal\block_test\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, KeyValueStoreInterface $keyValue) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.