You are here

public function DomainElementManagerInterface::setFormOptions in Domain Access 8

Resets form options and stores hidden values that the user cannot change.

Parameters

array $form: The form array.

\Drupal\Core\Form\FormStateInterface $form_state: The form state object.

string $field_name: The name of the field to check.

bool $hide_on_disallow: If the field is set to a value that cannot be altered by the user who is not assigned to that domain, pass TRUE to remove the form element entirely. See DomainSourceElementManager for the use-case.

Return value

array Return the modified form array.

1 method overrides DomainElementManagerInterface::setFormOptions()
DomainElementManager::setFormOptions in domain/src/DomainElementManager.php
Resets form options and stores hidden values that the user cannot change.

File

domain/src/DomainElementManagerInterface.php, line 38

Class

DomainElementManagerInterface
Handles hidden field options for domain entity references.

Namespace

Drupal\domain

Code

public function setFormOptions(array $form, FormStateInterface $form_state, $field_name, $hide_on_disallow = FALSE);