You are here

public function AbstractSolrEntity::addTextFile in Search API Solr 4.x

Same name and namespace in other branches
  1. 8.3 src/Entity/AbstractSolrEntity.php \Drupal\search_api_solr\Entity\AbstractSolrEntity::addTextFile()
1 call to AbstractSolrEntity::addTextFile()
AbstractSolrEntity::setTextFiles in src/Entity/AbstractSolrEntity.php

File

src/Entity/AbstractSolrEntity.php, line 140

Class

AbstractSolrEntity
Defines the abstract base class for Solr config entities.

Namespace

Drupal\search_api_solr\Entity

Code

public function addTextFile($name, $content) {
  $this->text_files[$name] = preg_replace('/\\R/u', "\n", $content);
  return $this;
}