You are here

public function Csl::validate in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 src/Csl.php \Drupal\bibcite\Csl::validate()

Validate CSL style.

@todo This is a very simple XML validation. Need to be replaced by some CSL validation mechanism.

Return value

bool TRUE if provided CSL is valid, FALSE if not.

File

src/Csl.php, line 83

Class

Csl
Simple wrapper for CSL XML.

Namespace

Drupal\bibcite

Code

public function validate() {
  return (bool) $this->xml;
}