You are here

public static function SyndicateBlock::create 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::create()

File

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

Class

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

Namespace

Drupal\node\Plugin\Block

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('config.factory'));
}