protected function AdjustmentTypeManager::getDiscovery in Commerce Core 8.2
Gets the plugin discovery.
Return value
\Drupal\Component\Plugin\Discovery\DiscoveryInterface
Overrides DefaultPluginManager::getDiscovery
File
- modules/
order/ src/ AdjustmentTypeManager.php, line 56
Class
- AdjustmentTypeManager
- Manages discovery and instantiation of commerce_adjustment_type plugins.
Namespace
Drupal\commerce_orderCode
protected function getDiscovery() {
if (!isset($this->discovery)) {
$this->discovery = new YamlDiscovery('commerce_adjustment_types', $this->moduleHandler
->getModuleDirectories());
$this->discovery
->addTranslatableProperty('label', 'label_context');
$this->discovery = new ContainerDerivativeDiscoveryDecorator($this->discovery);
}
return $this->discovery;
}