public function TagcloudsTermsBlock::__construct in TagCloud 8
Same name and namespace in other branches
- 2.0.x src/Plugin/Block/TagcloudsTermsBlock.php \Drupal\tagclouds\Plugin\Block\TagcloudsTermsBlock::__construct()
- 1.0.x src/Plugin/Block/TagcloudsTermsBlock.php \Drupal\tagclouds\Plugin\Block\TagcloudsTermsBlock::__construct()
Constructs a new TagcloudsTermsBlock instance.
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.
\Drupal\tagclouds\TagService $tagService: The tag service.
\Drupal\tagclouds\CloudBuilder $cloudBuilder: The cloud builder service.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory service.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ TagcloudsTermsBlock.php, line 67
Class
- TagcloudsTermsBlock
- Provides a template for blocks based of each vocabulary.
Namespace
Drupal\tagclouds\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, TagService $tagService, CloudBuilder $cloudBuilder, ConfigFactoryInterface $configFactory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->tagService = $tagService;
$this->cloudBuilder = $cloudBuilder;
$this->configFactory = $configFactory;
}