protected function TaxType::getPluginCollection in Commerce Core 8.2
Gets the plugin collection that holds the tax type plugin.
Ensures the plugin collection is initialized before returning it.
Return value
\Drupal\commerce\CommerceSinglePluginCollection The plugin collection.
1 call to TaxType::getPluginCollection()
- TaxType::getPluginCollections in modules/
tax/ src/ Entity/ TaxType.php - Gets the plugin collections used by this object.
File
- modules/
tax/ src/ Entity/ TaxType.php, line 167
Class
- TaxType
- Defines the tax type entity class.
Namespace
Drupal\commerce_tax\EntityCode
protected function getPluginCollection() {
if (!$this->pluginCollection) {
$plugin_manager = \Drupal::service('plugin.manager.commerce_tax_type');
$this->pluginCollection = new CommerceSinglePluginCollection($plugin_manager, $this->plugin, $this->configuration, $this);
}
return $this->pluginCollection;
}