public function SolrFieldType::setTextFiles in Search API Solr 8.2
Adds multiple text files to the Solr Field Type.
Parameters
array $text_files: An associative array using the file names as keys and the file contents as values.
Overrides SolrFieldTypeInterface::setTextFiles
File
- src/
Entity/ SolrFieldType.php, line 399
Class
- SolrFieldType
- Defines the SolrFieldType entity.
Namespace
Drupal\search_api_solr\EntityCode
public function setTextFiles($text_files) {
$this->text_files = [];
foreach ($text_files as $name => $content) {
$this
->addTextFile($name, $content);
}
}