You are here

public function Csl::__construct in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x src/Csl.php \Drupal\bibcite\Csl::__construct()

Csl constructor.

Parameters

string $csl_content: CSL content.

File

src/Csl.php, line 23

Class

Csl
Simple wrapper for CSL XML.

Namespace

Drupal\bibcite

Code

public function __construct($csl_content) {
  $this->xml = simplexml_load_string($csl_content);
}