You are here

public function CitationStyler::getStyle in Bibliography & Citation 2.0.x

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

Get current CSL style.

Return value

\Drupal\bibcite\Entity\CslStyleInterface|null Current CSL style.

Overrides CitationStylerInterface::getStyle

File

src/CitationStyler.php, line 139

Class

CitationStyler
Render CSL data to bibliographic citation.

Namespace

Drupal\bibcite

Code

public function getStyle() {
  if (!$this->style) {
    $this
      ->setStyleById($this->configuration
      ->get('default_style'));
  }
  return $this->style;
}