You are here

public function Key::getKeyInput in Key 8

Returns the configured key input for the key.

Return value

\Drupal\key\Plugin\KeyInputInterface The key input associated with the key.

Overrides KeyInterface::getKeyInput

File

src/Entity/Key.php, line 220

Class

Key
Defines the Key entity.

Namespace

Drupal\key\Entity

Code

public function getKeyInput() {
  return $this
    ->getPlugin('key_input');
}