You are here

public function SolrFieldType::setTextFiles in Apache Solr Multilingual 8

File

src/Entity/SolrFieldType.php, line 92
Contains Drupal\apachesolr_multilingual\Entity\SolrFieldType.

Class

SolrFieldType
Defines the SolrFieldType entity.

Namespace

Drupal\apachesolr_multilingual\Entity

Code

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