You are here

public function BaseDataProvider::__construct in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 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\DataProvider

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $connection, ImageFactory $image_factory) {
  $this->entityTypeManager = $entity_type_manager;
  $this->connection = $connection;
  $this->imageFactory = $image_factory;
}