public function CitationStyler::setStyle in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 src/CitationStyler.php \Drupal\bibcite\CitationStyler::setStyle()
Set CSL style.
@todo Use nullable type hint when Drupal will drop PHP 7.0 support.
Parameters
\Drupal\bibcite\Entity\CslStyleInterface|null $csl_style: CSL style object or NULL to reset to default style.
Return value
$this
Overrides CitationStylerInterface::setStyle
File
- src/
CitationStyler.php, line 150
Class
- CitationStyler
- Render CSL data to bibliographic citation.
Namespace
Drupal\bibciteCode
public function setStyle($csl_style) {
$this->style = $csl_style;
return $this;
}