You are here

public function KeyRepositoryInterface::getKey in Key 8

Get a specific key.

Parameters

string $key_id: The key ID to use.

Return value

\Drupal\key\Entity\Key The key object with the given id.

1 method overrides KeyRepositoryInterface::getKey()
KeyRepository::getKey in src/KeyRepository.php
Get a specific key.

File

src/KeyRepositoryInterface.php, line 79

Class

KeyRepositoryInterface
Provides the interface for a repository of Key entities.

Namespace

Drupal\key

Code

public function getKey($key_id);