You are here

public function CitationStyler::__construct in Bibliography & Citation 8

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

Styler constructor.

Parameters

\Drupal\Component\Plugin\PluginManagerInterface $plugin_manager: Manager of processor plugins.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: Config factory service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: Language manager service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager service.

File

src/CitationStyler.php, line 78

Class

CitationStyler
Render CSL data to bibliographic citation.

Namespace

Drupal\bibcite

Code

public function __construct(PluginManagerInterface $plugin_manager, ConfigFactoryInterface $config_factory, LanguageManagerInterface $language_manager, EntityTypeManagerInterface $entity_type_manager) {
  $this->pluginManager = $plugin_manager;
  $this->configuration = $config_factory
    ->get('bibcite.settings');
  $this->languageManager = $language_manager;
  $this->cslStorage = $entity_type_manager
    ->getStorage('bibcite_csl_style');
}