public function HubspotBlock::__construct in HubSpot 3.x
Same name and namespace in other branches
- 8 src/Plugin/Block/HubspotBlock.php \Drupal\hubspot\Plugin\Block\HubspotBlock::__construct()
HubspotBlock constructor.
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\hubspot\Hubspot $hubspot: Hubspot API Client service.
\Drupal\Core\Datetime\DateFormatter $dateFormatter: The date formatter service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ HubspotBlock.php, line 63
Class
- HubspotBlock
- Provides a 'hubspot' block.
Namespace
Drupal\hubspot\Plugin\BlockCode
public function __construct(array $configuration, string $plugin_id, $plugin_definition, Hubspot $hubspot, DateFormatter $dateFormatter, TimeInterface $time) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->hubspot = $hubspot;
$this->dateFormatter = $dateFormatter;
$this->time = $time;
}