public function DomainAliasForm::environmentOptions in Domain Access 8
Returns a list of valid environement options for the form.
Return value
array A list of valid environment options.
1 call to DomainAliasForm::environmentOptions()
- DomainAliasForm::form in domain_alias/
src/ DomainAliasForm.php - Gets the actual form array to be built.
File
- domain_alias/
src/ DomainAliasForm.php, line 196
Class
- DomainAliasForm
- Base form controller for domain alias edit forms.
Namespace
Drupal\domain_aliasCode
public function environmentOptions() {
$list = $this->config
->get('domain_alias.settings')
->get('environments');
$environments = [];
foreach ($list as $item) {
$environments[$item] = $item;
}
return $environments;
}