You are here

public function WidgetForm::__construct in Search API Sorts Widget 1.x

Constructs the DisplaySortsForm object.

Parameters

\Drupal\search_api\Display\DisplayPluginManagerInterface $display_plugin_manager: The search_api display plugin manager.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.

File

src/Form/WidgetForm.php, line 38

Class

WidgetForm
Provides a Search API Sorts Widget form.

Namespace

Drupal\search_api_sorts_widget\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->searchApiSortsWidgetStorage = $entity_type_manager
    ->getStorage('search_api_sorts_widget');
}