public function KeyProvider::setKeyRepository in Entity Share 8.3
Provides a means to our services.yml file to conditionally inject service.
Parameters
\Drupal\key\KeyRepositoryInterface $repository: The injected service, if it exists.
File
- modules/
entity_share_client/ src/ Service/ KeyProvider.php, line 49
Class
- KeyProvider
- Abstraction layer to support local storage and Key module.
Namespace
Drupal\entity_share_client\ServiceCode
public function setKeyRepository(KeyRepositoryInterface $repository) {
$this->keyRepository = $repository;
}