public BlockContentController::__construct(EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, ThemeHandlerInterface $theme_handler)
Constructs a BlockContent object.
Parameters
\Drupal\Core\Entity\EntityStorageInterface $block_content_storage: The custom block storage.
\Drupal\Core\Entity\EntityStorageInterface $block_content_type_storage: The custom block type storage.
\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.
File
- core/modules/block_content/src/Controller/BlockContentController.php, line 58
Class
Namespace
Drupal\block_content\Controller
Code
1 2 3 4 5 | public function __construct(EntityStorageInterface $block_content_storage , EntityStorageInterface $block_content_type_storage , ThemeHandlerInterface $theme_handler ) { $this ->blockContentStorage = $block_content_storage ; $this ->blockContentTypeStorage = $block_content_type_storage ; $this ->themeHandler = $theme_handler ; } |
Please login to continue.