You are here

public function NestedSetStorageFactory::__construct in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Storage/NestedSetStorageFactory.php \Drupal\entity_hierarchy\Storage\NestedSetStorageFactory::__construct()

Constructs a new NestedSetStorageFactory object.

Parameters

\Doctrine\DBAL\Connection $connection: Dbal Connection.

\Drupal\Core\Database\Connection $drupalConnection: Drupal connection.

\Psr\Log\LoggerInterface $logger: Logger.

File

src/Storage/NestedSetStorageFactory.php, line 52

Class

NestedSetStorageFactory
Defines a factory for creating a nested set storage handler for hierarchies.

Namespace

Drupal\entity_hierarchy\Storage

Code

public function __construct(Connection $connection, DrupalConnection $drupalConnection, LoggerInterface $logger) {
  $this->connection = $connection;
  $this->tablePrefix = $drupalConnection
    ->tablePrefix();
  $this->logger = $logger;
}