You are here

public static function WebformEntityPrintWebformDeriverBase::create in Webform 6.x

Same name and namespace in other branches
  1. 8.5 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 27

Class

WebformEntityPrintWebformDeriverBase
Provides base deriver for webform entity print plugins.

Namespace

Drupal\webform_entity_print\Plugin\Derivative

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  $instance = new static();
  $instance->exportTypeManager = $container
    ->get('plugin.manager.entity_print.export_type');
  return $instance;
}