You are here

public function DomainAliasForm::redirectOptions in Domain Access 8

Returns a list of valid redirect options for the form.

Return value

array A list of valid redirect options.

1 call to DomainAliasForm::redirectOptions()
DomainAliasForm::form in domain_alias/src/DomainAliasForm.php
Gets the actual form array to be built.

File

domain_alias/src/DomainAliasForm.php, line 182

Class

DomainAliasForm
Base form controller for domain alias edit forms.

Namespace

Drupal\domain_alias

Code

public function redirectOptions() {
  return [
    0 => $this
      ->t('Do not redirect'),
    301 => $this
      ->t('301 redirect: Moved Permanently'),
    302 => $this
      ->t('302 redirect: Found'),
  ];
}