public function Csl::validate in Bibliography & Citation 8
Same name and namespace in other branches
- 2.0.x 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\bibciteCode
public function validate() {
return (bool) $this->xml;
}