public function BaseDataProvider::__construct in Gutenberg 8.2
Same name and namespace in other branches
- 8 src/DataProvider/BaseDataProvider.php \Drupal\gutenberg\DataProvider\BaseDataProvider::__construct()
BaseDataProvider constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\Image\ImageFactory $image_factory: The image factory.
File
- src/
DataProvider/ BaseDataProvider.php, line 47
Class
- BaseDataProvider
- Provides base abstraction for entity data providers.
Namespace
Drupal\gutenberg\DataProviderCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $connection, ImageFactory $image_factory) {
$this->entityTypeManager = $entity_type_manager;
$this->connection = $connection;
$this->imageFactory = $image_factory;
}