public function WorkflowRepository::__construct in Forms Steps 8
Construct a repository object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.
File
- src/
Repository/ WorkflowRepository.php, line 37
Class
- WorkflowRepository
- Class WorkflowRepository.
Namespace
Drupal\forms_steps\RepositoryCode
public function __construct(Connection $connection, TranslationInterface $translation) {
$this->connection = $connection;
$this
->setStringTranslation($translation);
}