public function ConnectionService::__construct in RedHen CRM 8
Constructs a EntityCreateAccessCheck object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.
\Drupal\Core\Database\Connection $connection: The database connection.
File
- modules/
redhen_connection/ src/ ConnectionService.php, line 41
Class
- ConnectionService
- Provides an interface for getting connections between entities.
Namespace
Drupal\redhen_connectionCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, DBConnection $connection) {
$this->entityTypeManager = $entity_type_manager;
$this->connection = $connection;
}