Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add coverage for addtional modules utilized by Search API.
$modules = array(
'search_api_attachments_entityreference',
'search_api_attachments_references',
'search_api_attachments_field_collections',
'search_api_multi',
'search_api_views',
);
foreach ($modules as $module) {
if (module_exists($module)) {
$this->setNamedComponents('dependencies', array($module));
}
}
$this->setAllComponents('search_api_autocomplete_search');
if (!empty($this->components['search_api_autocomplete_search'])) {
$this->setNamedComponents('dependencies', array('search_api_autocomplete'));
}
$this->setAllComponents('search_api_page');
if (!empty($this->components['search_api_page'])) {
$this->setNamedComponents('dependencies', array('search_api_page'));
}
Comments
Comment #3
kerasai CreditAttribution: kerasai commented