You are here

public function CitationStylerInterface::setStyle in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 src/CitationStylerInterface.php \Drupal\bibcite\CitationStylerInterface::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

1 method overrides CitationStylerInterface::setStyle()
CitationStyler::setStyle in src/CitationStyler.php
Set CSL style.

File

src/CitationStylerInterface.php, line 80

Class

CitationStylerInterface
Defines an interface for Styler service.

Namespace

Drupal\bibcite

Code

public function setStyle($csl_style);