You are here

public static function BlockContentBlock::create in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::create()
  2. 9 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::create()

File

core/modules/block_content/src/Plugin/Block/BlockContentBlock.php, line 114

Class

BlockContentBlock
Defines a generic custom block type.

Namespace

Drupal\block_content\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('plugin.manager.block'), $container
    ->get('entity_type.manager'), $container
    ->get('current_user'), $container
    ->get('url_generator'), $container
    ->get('block_content.uuid_lookup'), $container
    ->get('entity_display.repository'));
}