public function OrderPaneManager::__construct in Ubercart 8.4
Constructs an OrderPaneManager object.
Parameters
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides DefaultPluginManager::__construct
File
- uc_order/
src/ Plugin/ OrderPaneManager.php, line 27
Class
- OrderPaneManager
- Manages discovery and instantiation of order panes.
Namespace
Drupal\uc_order\PluginCode
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
parent::__construct('Plugin/Ubercart/OrderPane', $namespaces, $module_handler, OrderPanePluginInterface::class, UbercartOrderPane::class);
$this
->alterInfo('uc_order_pane');
$this
->setCacheBackend($cache_backend, 'uc_order_panes');
}