You are here

interface BaseInterface in DRD Agent 8.3

Same name in this branch
  1. 8.3 src/Crypt/BaseInterface.php \Drupal\drd_agent\Crypt\BaseInterface
  2. 8.3 src/Agent/Action/BaseInterface.php \Drupal\drd_agent\Agent\Action\BaseInterface
  3. 8.3 src/Agent/Remote/BaseInterface.php \Drupal\drd_agent\Agent\Remote\BaseInterface
  4. 8.3 src/Agent/Auth/BaseInterface.php \Drupal\drd_agent\Agent\Auth\BaseInterface
Same name and namespace in other branches
  1. 4.0.x src/Crypt/BaseInterface.php \Drupal\drd_agent\Crypt\BaseInterface

Provides an interface for encryption.

Hierarchy

Expanded class hierarchy of BaseInterface

All classes that implement BaseInterface

File

src/Crypt/BaseInterface.php, line 12

Namespace

Drupal\drd_agent\Crypt
View source
interface BaseInterface {

  /**
   * Create instance of a crypt object of given method with provided settings.
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   * @param string $method
   *   ID of the crypt method.
   * @param array $settings
   *   Settings of the crypt instance.
   *
   * @return BaseMethodInterface
   *   The crypt object.
   */
  public static function getInstance(ContainerInterface $container, $method, array $settings) : BaseMethodInterface;

  /**
   * Get a list of crypt methods, either just their ids or instances of each.
   *
   *
   * @param \Symfony\Component\DependencyInjection\ContainerInterface $container
   * @param bool $instances
   *   Whether to receive ids (FALSE) or instances (TRUE).
   *
   * @return array
   *   List of crypt methods.
   */
  public static function getMethods(ContainerInterface $container, $instances = FALSE) : array;

}

Members

Namesort descending Modifiers Type Description Overrides
BaseInterface::getInstance public static function Create instance of a crypt object of given method with provided settings. 1
BaseInterface::getMethods public static function Get a list of crypt methods, either just their ids or instances of each. 2