You are here

KeyPluginInterface.php in Key 8

Namespace

Drupal\key\Plugin

File

src/Plugin/KeyPluginInterface.php
View source
<?php

namespace Drupal\key\Plugin;

use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\DependentPluginInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;

/**
 * Provides an interface for all Key plugins.
 */
interface KeyPluginInterface extends ContainerFactoryPluginInterface, PluginInspectionInterface, ConfigurableInterface, DependentPluginInterface {

  /**
   * Returns the type of plugin.
   *
   * @return string
   *   The type of plugin: "key_type", "key_provider", or "key_input".
   */
  public function getPluginType();

}

Interfaces

Namesort descending Description
KeyPluginInterface Provides an interface for all Key plugins.