You are here

public function SyndicateBlock::__construct in Drupal 10

Same name and namespace in other branches
  1. 9 core/modules/node/src/Plugin/Block/SyndicateBlock.php \Drupal\node\Plugin\Block\SyndicateBlock::__construct()

Constructs a SyndicateBlock 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.

\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.

File

core/modules/node/src/Plugin/Block/SyndicateBlock.php, line 44

Class

SyndicateBlock
Provides a 'Syndicate' block that links to the site's RSS feed.

Namespace

Drupal\node\Plugin\Block

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $configFactory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $configFactory;
}