public function BlockContentForm::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/block_content/src/BlockContentForm.php \Drupal\block_content\BlockContentForm::__construct()
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 63 - Contains \Drupal\block_content\BlockContentForm.
Class
- BlockContentForm
- Form controller for the custom block edit forms.
Namespace
Drupal\block_contentCode
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;
}