You are here

public function UIOverrideProvider::__construct in Bibliography & Citation 8

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

Construct new UIOverrideProvider object.

Parameters

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

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

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

\Drupal\Component\Plugin\Exception\PluginNotFoundException

File

modules/bibcite_entity/src/UIOverrideProvider.php, line 42

Class

UIOverrideProvider
Collection of hardcoded overrides for reference form and view.

Namespace

Drupal\bibcite_entity

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory) {
  $this->typeStorage = $entity_type_manager
    ->getStorage('bibcite_reference_type');
  $this->config = $config_factory
    ->get('bibcite_entity.reference.settings');
}