You are here

public function Record::__construct in Views OAI-PMH 8

Record constructor.

Parameters

array $configuration:

$plugin_id:

$plugin_definition:

\Drupal\views_oai_pmh\Service\FormatRowToXml $rowToXml:

\Drupal\views_oai_pmh\Plugin\MetadataPrefixManager $prefixManager:

\Symfony\Component\Serializer\Serializer $serializer:

\Drupal\views_oai_pmh\Service\Repository $repository:

\Drupal\views_oai_pmh\Service\Provider $provider:

Overrides ValueConvertTrait::__construct

File

src/Plugin/views/style/Record.php, line 91

Class

Record
Plugin annotation @ViewsStyle( id = "views_oai_pmh_record", title = @Translation("OAI-PMH"), help = @Translation("Displays rows in OAI-PMH records."), display_types = {"oai_pmh"} )

Namespace

Drupal\views_oai_pmh\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, FormatRowToXml $rowToXml, MetadataPrefixManager $prefixManager, Serializer $serializer, Repository $repository, Provider $provider) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->rowToXml = $rowToXml;
  $this->prefixManager = $prefixManager;
  $this->serializer = $serializer;
  $this->repository = $repository;
  $this->provider = $provider;
  foreach ($prefixManager
    ->getDefinitions() as $id => $plugin) {
    $this->metadataPrefix[$id] = $plugin;
  }
}