You are here

public function PasswordPolicyWizard::getOperations in Password Policy 8.3

Retrieve a list of FormInterface classes by their step key in the wizard.

Parameters

mixed $cached_values: The values returned by $this->getTempstore()->get($this->getMachineName()); *.

Return value

array An associative array keyed on the step name with an array value with the following keys:

  • title (string): Human-readable title of the step.
  • form (string): Fully-qualified class name of the form for this step.
  • values (array): Optional array of cached values to override when on this step.
  • validate (array): Optional array of callables to be called when this step is validated.
  • submit (array): Optional array of callables to be called when this step is submitted.

Overrides FormWizardInterface::getOperations

File

src/Wizard/PasswordPolicyWizard.php, line 55

Class

PasswordPolicyWizard
The definition of the password policy form wizard.

Namespace

Drupal\password_policy\Wizard

Code

public function getOperations($cached_values) {
  return [
    'general' => [
      'title' => $this
        ->t('General Info'),
      'form' => 'Drupal\\password_policy\\Form\\PasswordPolicyGeneralForm',
    ],
    'constraint' => [
      'title' => $this
        ->t('Configure Constraints'),
      'form' => 'Drupal\\password_policy\\Form\\PasswordPolicyConstraintForm',
    ],
    'roles' => [
      'title' => $this
        ->t('Apply to Roles'),
      'form' => 'Drupal\\password_policy\\Form\\PasswordPolicyRolesForm',
    ],
  ];
}