You are here

public function SearchApiAlterLanguageControl::__construct in Search API 7

Implements SearchApiAlterCallbackInterface::__construct().

Overrides SearchApiAbstractAlterCallback::__construct

File

includes/callback_language_control.inc, line 17
Contains SearchApiAlterLanguageControl.

Class

SearchApiAlterLanguageControl
Search API data alteration callback that filters out items based on their bundle.

Code

public function __construct(SearchApiIndex $index, array $options = array()) {
  $options += array(
    'lang_field' => '',
    'languages' => array(),
  );
  parent::__construct($index, $options);
}