17 public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler) {
19 parent::__construct(
"Plugin/ParagraphsEditor/$type", $namespaces, $module_handler, $plugin_interface, $annotation);
20 $this->alterInfo(
"paragraphs_editor_{$type}_info");
21 $this->setCacheBackend($cache_backend,
"paragraphs_editor_{$type}_info_plugins");
37 case 'delivery_provider':
39 'Drupal\paragraphs_editor\Plugin\ParagraphsEditor\DeliveryProviderInterface',
40 'Drupal\paragraphs_editor\Annotation\ParagraphsEditorDeliveryProvider',
43 case 'bundle_selector':
45 'Drupal\paragraphs_editor\Plugin\ParagraphsEditor\BundleSelectorInterface',
46 'Drupal\paragraphs_editor\Annotation\ParagraphsEditorBundleSelector',
50 throw new \Exception(
"Invalid plugin type '$type'");
__construct($type,\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler)