public function UIOverrideProvider::__construct in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 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_entityCode
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');
}