public function MockUserLoginBlock::__construct in Drupal 8
Same name and namespace in other branches
- 9 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserLoginBlock.php \Drupal\plugin_test\Plugin\plugin_test\mock_block\MockUserLoginBlock::__construct()
- 10 core/modules/system/tests/modules/plugin_test/src/Plugin/plugin_test/mock_block/MockUserLoginBlock.php \Drupal\plugin_test\Plugin\plugin_test\mock_block\MockUserLoginBlock::__construct()
Constructs a \Drupal\Component\Plugin\PluginBase object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
Overrides PluginBase::__construct
File
- core/
modules/ system/ tests/ modules/ plugin_test/ src/ Plugin/ plugin_test/ mock_block/ MockUserLoginBlock.php, line 21
Class
- MockUserLoginBlock
- Mock implementation of a login block plugin used by Plugin API unit tests.
Namespace
Drupal\plugin_test\Plugin\plugin_test\mock_blockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->title = isset($configuration['title']) ? $configuration['title'] : '';
}