You are here

public function CitationStyler::setProcessorById in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x src/CitationStyler.php \Drupal\bibcite\CitationStyler::setProcessorById()

Load plugin object by identifier.

Parameters

string $processor_id: Identifier of processor plugin.

Return value

\Drupal\bibcite\CitationStylerInterface The called Styler object.

Overrides CitationStylerInterface::setProcessorById

1 call to CitationStyler::setProcessorById()
CitationStyler::getProcessor in src/CitationStyler.php
Get current processor plugin.

File

src/CitationStyler.php, line 106

Class

CitationStyler
Render CSL data to bibliographic citation.

Namespace

Drupal\bibcite

Code

public function setProcessorById($processor_id) {
  $this->processor = $this->pluginManager
    ->createInstance($processor_id);
  return $this;
}