public function NestedSetStorage::__construct in Entity Reference Hierarchy 3.x
Same name and namespace in other branches
- 8.2 src/Storage/NestedSetStorage.php \Drupal\entity_hierarchy\Storage\NestedSetStorage::__construct()
Constructs a new NestedSetStorage object.
Parameters
\Doctrine\DBAL\Connection $connection: Connection.
string $table_name: Table name.
\Psr\Log\LoggerInterface $logger: Logger.
File
- src/
Storage/ NestedSetStorage.php, line 73
Class
- NestedSetStorage
- Wraps the library nested set implementation with JIT table creation.
Namespace
Drupal\entity_hierarchy\StorageCode
public function __construct(Connection $connection, $table_name, LoggerInterface $logger) {
$this->schema = new DbalNestedSetSchema($connection, $table_name);
$this->proxy = new DbalNestedSet($connection, $table_name);
$this->logger = $logger;
$this->tableName = $table_name;
}