public static function WebformEntityPrintWebformDeriverBase::create in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_entity_print/src/Plugin/Derivative/WebformEntityPrintWebformDeriverBase.php \Drupal\webform_entity_print\Plugin\Derivative\WebformEntityPrintWebformDeriverBase::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- modules/
webform_entity_print/ src/ Plugin/ Derivative/ WebformEntityPrintWebformDeriverBase.php, line 38
Class
- WebformEntityPrintWebformDeriverBase
- Provides base deriver for webform entity print plugins.
Namespace
Drupal\webform_entity_print\Plugin\DerivativeCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('plugin.manager.entity_print.export_type'));
}