You are here

public function SaveSearch::getFormBuilder in Search API Saved Searches 8

Retrieves the form builder.

Return value

\Drupal\Core\Form\FormBuilderInterface The form builder.

File

src/Plugin/Block/SaveSearch.php, line 100

Class

SaveSearch
Displays the "Save search" form in a block.

Namespace

Drupal\search_api_saved_searches\Plugin\Block

Code

public function getFormBuilder() {
  return $this->formBuilder ?: \Drupal::formBuilder();
}