function BlockContentBlock::create
Same name in other branches
- 9 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::create()
- 10 core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::create()
- 11.x core/modules/block_content/src/Plugin/Block/BlockContentBlock.php \Drupal\block_content\Plugin\Block\BlockContentBlock::create()
Overrides ContainerFactoryPluginInterface::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\BlockCode
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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.