public function BlockEntityStorage::__construct in Field as Block 8.2
Constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Component\Uuid\UuidInterface $uuid_service: The UUID service.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
Overrides ConfigEntityStorage::__construct
File
- src/
BlockEntityStorage.php, line 58
Class
- BlockEntityStorage
- Class BlockEntityStorage.
Namespace
Drupal\fieldblockCode
public function __construct(ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entityTypeManager) {
$this->configFactory = $config_factory;
$this->uuidService = $uuid_service;
$this->languageManager = $language_manager;
$this->entityTypeManager = $entityTypeManager;
$entity_type = $entityTypeManager
->getDefinition('block');
parent::__construct($entity_type, $config_factory, $uuid_service, $language_manager);
}