You are here

interface QaAccountsCreateDeleteInterface in QA Accounts 8

Interface for a service that creates and deletes QA accounts for roles.

Hierarchy

Expanded class hierarchy of QaAccountsCreateDeleteInterface

All classes that implement QaAccountsCreateDeleteInterface

1 file declares its use of QaAccountsCreateDeleteInterface
QaAccountsCommands.php in src/Commands/QaAccountsCommands.php

File

src/QaAccountsCreateDeleteInterface.php, line 8

Namespace

Drupal\qa_accounts
View source
interface QaAccountsCreateDeleteInterface {

  /**
   * Creates QA accounts for all existing roles.
   */
  public function createQaAccounts();

  /**
   * Creates QA account for specified role.
   *
   * @param string $role_name
   *   The machine name of the role the account is to be created for.
   */
  public function createQaAccountForRole($role_name);

  /**
   * Deletes QA accounts.
   */
  public function deleteQaAccounts();

  /**
   * Deletes QA account for specified role.
   *
   * @param string $role_name
   *   The machine name of the role the account is to be deleted for.
   */
  public function deleteQaAccountForRole($role_name);

}

Members

Namesort descending Modifiers Type Description Overrides
QaAccountsCreateDeleteInterface::createQaAccountForRole public function Creates QA account for specified role. 1
QaAccountsCreateDeleteInterface::createQaAccounts public function Creates QA accounts for all existing roles. 1
QaAccountsCreateDeleteInterface::deleteQaAccountForRole public function Deletes QA account for specified role. 1
QaAccountsCreateDeleteInterface::deleteQaAccounts public function Deletes QA accounts. 1