You are here

public function FaqController::generalSettings in Frequently Asked Questions 8

Renders the form for the FAQ Settings page - General tab.

Return value

The form code inside the $build array.

1 string reference to 'FaqController::generalSettings'
faq.routing.yml in ./faq.routing.yml
faq.routing.yml

File

src/Controller/FaqController.php, line 295

Class

FaqController
Controller routines for FAQ routes.

Namespace

Drupal\faq\Controller

Code

public function generalSettings() {
  $build = array();
  $build['faq_general_settings_form'] = $this
    ->formBuilder()
    ->getForm('Drupal\\faq\\Form\\GeneralForm');
  return $build;
}