public function Key::getPlugin in Key 8
Returns the configured plugin of the requested type.
Parameters
string $type: The plugin type to return.
Return value
\Drupal\key\Plugin\KeyPluginInterface The plugin.
Overrides KeyInterface::getPlugin
4 calls to Key::getPlugin()
- Key::getKeyInput in src/
Entity/ Key.php - Returns the configured key input for the key.
- Key::getKeyProvider in src/
Entity/ Key.php - Returns the configured key provider for the key.
- Key::getKeyType in src/
Entity/ Key.php - Returns the configured key type for the key.
- Key::getPlugins in src/
Entity/ Key.php - Returns the configured plugins for the key.
File
- src/
Entity/ Key.php, line 171
Class
- Key
- Defines the Key entity.
Namespace
Drupal\key\EntityCode
public function getPlugin($type) {
return $this
->getPluginCollection($type)
->get($this->{$type});
}