You are here

public function AbstractSolrEntity::setTextFiles in Search API Solr 8.3

Same name and namespace in other branches
  1. 4.x 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\Entity

Code

public function setTextFiles(array $text_files) {
  $this->text_files = [];
  foreach ($text_files as $name => $content) {
    $this
      ->addTextFile($name, $content);
  }
  return $this;
}