public function SearchApiAbstractDataSourceController::__construct in Search API 7
Constructs an SearchApiDataSourceControllerInterface object.
Parameters
string $type: The item type for which this controller is created.
Overrides SearchApiDataSourceControllerInterface::__construct
1 call to SearchApiAbstractDataSourceController::__construct()
- SearchApiEntityDataSourceController::__construct in includes/
datasource_entity.inc - Constructs an SearchApiDataSourceControllerInterface object.
1 method overrides SearchApiAbstractDataSourceController::__construct()
- SearchApiEntityDataSourceController::__construct in includes/
datasource_entity.inc - Constructs an SearchApiDataSourceControllerInterface object.
File
- includes/
datasource.inc, line 439 - Contains the SearchApiDataSourceControllerInterface as well as a default base class.
Class
- SearchApiAbstractDataSourceController
- Provides a default base class for datasource controllers.
Code
public function __construct($type) {
$this->type = $type;
$this->info = search_api_get_item_type_info($type);
if (!empty($this->info['entity_type'])) {
$this->entityType = $this->info['entity_type'];
}
}