public function AbstractSolrEntity::setTextFiles in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 src/Entity/AbstractSolrEntity.php \Drupal\search_api_solr\Entity\AbstractSolrEntity::setTextFiles()
File
- src/
Entity/ AbstractSolrEntity.php, line 148
Class
- AbstractSolrEntity
- Defines the abstract base class for Solr config entities.
Namespace
Drupal\search_api_solr\EntityCode
public function setTextFiles(array $text_files) {
$this->text_files = [];
foreach ($text_files as $name => $content) {
$this
->addTextFile($name, $content);
}
return $this;
}