public function MappingForeignRelationshipsEvent::__construct in Search API 8
Constructs a new class instance.
Parameters
\Drupal\search_api\IndexInterface $index: The index whose foreign relationships are mapped.
array $foreign_relationships_mapping: The foreign relationships that were already found.
\Drupal\Core\Cache\RefinableCacheableDependencyInterface $cacheability: The cacheability associated with the foreign relationships mapping.
File
- src/
Event/ MappingForeignRelationshipsEvent.php, line 47
Class
- MappingForeignRelationshipsEvent
- Wraps a foreign relationships mapping event.
Namespace
Drupal\search_api\EventCode
public function __construct(IndexInterface $index, array &$foreign_relationships_mapping, RefinableCacheableDependencyInterface $cacheability) {
$this->index = $index;
$this->foreignRelationshipsMapping =& $foreign_relationships_mapping;
$this->cacheability = $cacheability;
}