You are here

public function Key::getKeyType in Key 8

Returns the configured key type for the key.

Return value

\Drupal\key\Plugin\KeyTypeInterface The key type associated with the key.

Overrides KeyInterface::getKeyType

2 calls to Key::getKeyType()
Key::getKeyValues in src/Entity/Key.php
Gets the values of the key.
Key::setKeyValue in src/Entity/Key.php
Sets the value of the key.

File

src/Entity/Key.php, line 206

Class

Key
Defines the Key entity.

Namespace

Drupal\key\Entity

Code

public function getKeyType() {
  return $this
    ->getPlugin('key_type');
}