BlockContentForm::__construct

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

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;
}
doc_Drupal
2016-10-29 08:46:57
Comments
Leave a Comment

Please login to continue.