You are here

public function CitationStyler::setStyle in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x 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\bibcite

Code

public function setStyle($csl_style) {
  $this->style = $csl_style;
  return $this;
}