public BlockContentForm::__construct(EntityManagerInterface $entity_manager, EntityStorageInterface $block_content_storage, EntityStorageInterface $block_content_type_storage, LanguageManagerInterface $language_manager)
Constructs a BlockContentForm object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\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\Language\LanguageManagerInterface $language_manager: The language manager.
Overrides ContentEntityForm::__construct
File
- core/modules/block_content/src/BlockContentForm.php, line 58
Class
- BlockContentForm
- Form handler for the custom block edit forms.
Namespace
Drupal\block_content
Code
1 2 3 4 5 6 | public function __construct(EntityManagerInterface $entity_manager , EntityStorageInterface $block_content_storage , EntityStorageInterface $block_content_type_storage , LanguageManagerInterface $language_manager ) { parent::__construct( $entity_manager ); $this ->blockContentStorage = $block_content_storage ; $this ->blockContentTypeStorage = $block_content_type_storage ; $this ->languageManager = $language_manager ; } |
Please login to continue.