public function SyndicateBlock::__construct in Drupal 9
Same name and namespace in other branches
- 10 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.
Overrides BlockPluginTrait::__construct
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\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $configFactory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $configFactory;
}