public function DomainElementManager::fieldList in Domain Access 8
Stores a static list of fields that have been disallowed.
Parameters
string $field_name: The name of the field being processed. Inherited from setFormOptions.
Return value
array An array of field names.
Overrides DomainElementManagerInterface::fieldList
1 call to DomainElementManager::fieldList()
- DomainElementManager::setFormOptions in domain/
src/ DomainElementManager.php - Resets form options and stores hidden values that the user cannot change.
File
- domain/
src/ DomainElementManager.php, line 159
Class
- DomainElementManager
- Generic base class for handling hidden field options.
Namespace
Drupal\domainCode
public function fieldList($field_name) {
static $fields = [];
$fields[] = $field_name;
// Return only unique field names. AJAX requests can result in duplicates.
// See https://www.drupal.org/project/domain/issues/2930934.
return array_unique($fields);
}