public function FedEx::getPlugins in Commerce FedEx 8
Loads the Plugin Collection.
Return value
$this
File
- src/
Plugin/ Commerce/ ShippingMethod/ FedEx.php, line 553
Class
- FedEx
- Provides the FedEx shipping method.
Namespace
Drupal\commerce_fedex\Plugin\Commerce\ShippingMethodCode
public function getPlugins() {
$plugins = [];
foreach ($this->configuration['plugins'] as $plugin_id => $plugin_data) {
$plugins[$plugin_id] = $plugin_data['configuration'];
}
$this->plugins = new DefaultLazyPluginCollection($this->fedExServiceManager, $plugins);
return $this;
}