public function TawkToExtraSettingsForm::buildForm in Tawk.to - Live chat application (Drupal 8) 8
Same name and namespace in other branches
- 8.2 src/Form/TawkToExtraSettingsForm.php \Drupal\tawk_to\Form\TawkToExtraSettingsForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ConfigFormBase::buildForm
File
- src/
Form/ TawkToExtraSettingsForm.php, line 94
Class
- TawkToExtraSettingsForm
- Provides form for block instance forms.
Namespace
Drupal\tawk_to\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
// Build visibility settings part.
$form_state
->setTemporaryValue('gathered_contexts', $this->contextRepository
->getAvailableContexts());
$form['#tree'] = TRUE;
$form['visibility'] = $this
->buildVisibilityInterface([], $form_state);
$form['user'] = $this
->buildUserInfoInterface([], $form_state);
return parent::buildForm($form, $form_state);
}