You are here

interface EncryptionProfileManagerInterface in Encrypt 8.3

Provides an interface defining an EncryptionProfile manager.

Hierarchy

Expanded class hierarchy of EncryptionProfileManagerInterface

All classes that implement EncryptionProfileManagerInterface

File

src/EncryptionProfileManagerInterface.php, line 8

Namespace

Drupal\encrypt
View source
interface EncryptionProfileManagerInterface {

  /**
   * Get an encryption profile based on the ID.
   *
   * @param string $encryption_profile_id
   *   ID of EncryptionProfile entity.
   *
   * @return \Drupal\encrypt\EncryptionProfileInterface
   *   The EncryptionProfile entity.
   */
  public function getEncryptionProfile($encryption_profile_id);

  /**
   * Get all EncryptionProfile entities.
   *
   * @return \Drupal\encrypt\EncryptionProfileInterface[]
   *   An array of all EncryptionProfile entities.
   */
  public function getAllEncryptionProfiles();

  /**
   * Get EncryptionProfile entities by encryption method plugin ID.
   *
   * @param string $encryption_method_id
   *   The plugin ID of the EncryptionMethod.
   *
   * @return \Drupal\encrypt\EncryptionProfileInterface[]
   *   An array of EncryptionProfile entities.
   */
  public function getEncryptionProfilesByEncryptionMethod($encryption_method_id);

  /**
   * Get EncryptionProfile entities by encryption Key entity ID.
   *
   * @param string $key_id
   *   The plugin ID of the EncryptionMethod.
   *
   * @return \Drupal\encrypt\EncryptionProfileInterface[]
   *   An array of EncryptionProfile entities.
   */
  public function getEncryptionProfilesByEncryptionKey($key_id);

  /**
   * Get EncryptionProfiles as options list for a select element.
   *
   * @return array
   *   An array of encryption profile names, indexed by id.
   */
  public function getEncryptionProfileNamesAsOptions();

}

Members

Namesort descending Modifiers Type Description Overrides
EncryptionProfileManagerInterface::getAllEncryptionProfiles public function Get all EncryptionProfile entities. 1
EncryptionProfileManagerInterface::getEncryptionProfile public function Get an encryption profile based on the ID. 1
EncryptionProfileManagerInterface::getEncryptionProfileNamesAsOptions public function Get EncryptionProfiles as options list for a select element. 1
EncryptionProfileManagerInterface::getEncryptionProfilesByEncryptionKey public function Get EncryptionProfile entities by encryption Key entity ID. 1
EncryptionProfileManagerInterface::getEncryptionProfilesByEncryptionMethod public function Get EncryptionProfile entities by encryption method plugin ID. 1