protected function Record::getInstancePlugin in Views OAI-PMH 8
Get plugin entity for some plugin id
Parameters
$plugin_id:
Return value
\Drupal\views_oai_pmh\Plugin\MetadataPrefixInterface
Throws
\Drupal\Component\Plugin\Exception\PluginException
2 calls to Record::getInstancePlugin()
- Record::buildOptionsForm in src/
Plugin/ views/ style/ Record.php - Record::render in src/
Plugin/ views/ style/ Record.php - Render the display in this style.
File
- src/
Plugin/ views/ style/ Record.php, line 506
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\styleCode
protected function getInstancePlugin($plugin_id) : MetadataPrefixInterface {
if (isset($this->pluginInstances[$plugin_id])) {
return $this->pluginInstances[$plugin_id];
}
$this->pluginInstances[$plugin_id] = $this->prefixManager
->createInstance($plugin_id);
return $this->pluginInstances[$plugin_id];
}