function AnnounceBlock::__construct

Same name in other branches
  1. 11.x core/modules/announcements_feed/src/Plugin/Block/AnnounceBlock.php \Drupal\announcements_feed\Plugin\Block\AnnounceBlock::__construct()

Constructs a new AnnouncementsFeedBlock 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\announcements_feed\AnnounceRenderer $announceRenderer: The AnnounceRenderer service.

Overrides BlockPluginTrait::__construct

File

core/modules/announcements_feed/src/Plugin/Block/AnnounceBlock.php, line 39

Class

AnnounceBlock
Provides an 'Announcements Feed' block.

Namespace

Drupal\announcements_feed\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AnnounceRenderer $announceRenderer) {
    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.