You are here

public function KeyConfigOverride::getKey in Key 8

Return the key entity associated with the override.

Return value

\Drupal\key\KeyInterface The key entity.

Overrides KeyConfigOverrideInterface::getKey

File

src/Entity/KeyConfigOverride.php, line 140

Class

KeyConfigOverride
Defines the KeyConfigOverride entity.

Namespace

Drupal\key\Entity

Code

public function getKey() {
  if (!isset($this->key)) {

    // TODO: Get the key entity.
  }
  return $this->key;
}