public function SolrFieldType::requiresManagedSchema in Search API Solr 8.3
Same name and namespace in other branches
- 4.x src/Entity/SolrFieldType.php \Drupal\search_api_solr\Entity\SolrFieldType::requiresManagedSchema()
Indicates if the field type requires a managed Solr schema.
Return value
bool Whether the field type requires a managed schema.
Overrides SolrFieldTypeInterface::requiresManagedSchema
File
- src/
Entity/ SolrFieldType.php, line 560
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function requiresManagedSchema() {
if (isset($this->field_type['analyzers'])) {
foreach ($this->field_type['analyzers'] as $analyzer) {
if (isset($analyzer['filters'])) {
foreach ($analyzer['filters'] as $filter) {
if (strpos($filter['class'], 'solr.Managed') === 0) {
return TRUE;
}
}
}
}
}
return FALSE;
}