function 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 50
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) {
@trigger_error('The Syndicate block is deprecated in drupal:11.2.0 and will be removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3519248', E_USER_DEPRECATED);
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $configFactory;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.