You are here

protected function MappingForm::initConfiguration in Bibliography & Citation 2.0.x

Same name and namespace in other branches
  1. 8 modules/bibcite_entity/src/Form/MappingForm.php \Drupal\bibcite_entity\Form\MappingForm::initConfiguration()

Init mapping configuration object.

Parameters

\Drupal\bibcite\Plugin\BibciteFormatInterface $bibcite_format: Format plugin instance.

1 call to MappingForm::initConfiguration()
MappingForm::buildForm in modules/bibcite_entity/src/Form/MappingForm.php
Form constructor.

File

modules/bibcite_entity/src/Form/MappingForm.php, line 212

Class

MappingForm
Format mapping form.

Namespace

Drupal\bibcite_entity\Form

Code

protected function initConfiguration(BibciteFormatInterface $bibcite_format) {
  $config_name = sprintf('bibcite_entity.mapping.%s', $bibcite_format
    ->getPluginId());
  $this->config = $this
    ->configFactory()
    ->getEditable($config_name);
}