コード例 #1
0
 /**
  * Creates a new instance.
  *
  * @param mixed[] $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  * @param \Drupal\Core\Render\RendererInterface $renderer
  * @param \Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemManagerInterface $payment_line_item_manager
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, RendererInterface $renderer, PaymentLineItemManagerInterface $payment_line_item_manager)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->paymentLineItemManager = $payment_line_item_manager;
     $this->renderer = $renderer;
     $this->stringTranslation = $string_translation;
 }
コード例 #2
0
 /**
  * Constructs a new instance.
  *
  * @param mixed[] $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $currency_storage
  * @param \Commercie\Currency\InputInterface $input
  * @param \Drupal\currency\FormHelperInterface $form_helper
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, EntityStorageInterface $currency_storage, InputInterface $input, FormHelperInterface $form_helper)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->currencyStorage = $currency_storage;
     $this->formHelper = $form_helper;
     $this->input = $input;
     $this->stringTranslation = $string_translation;
 }
コード例 #3
0
 /**
  * Constructs a new instance.
  *
  * @param mixed[] $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $currency_storage
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, TranslationInterface $string_translation, EntityStorageInterface $currency_storage)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->currencyStorage = $currency_storage;
     $this->stringTranslation = $string_translation;
 }
コード例 #4
0
 /**
  * Constructs a new instance.
  *
  * @param mixed[] $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  */
 public function __construct(array $configuration, $plugin_id, $plugin_definition, TranslationInterface $string_translation, DateFormatter $date_formatter)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->dateFormatter = $date_formatter;
     $this->stringTranslation = $string_translation;
 }
コード例 #5
0
 /**
  * Creates a new instance.
  *
  * @param mixed[] $configuration
  *   A configuration array containing information about the plugin instance.
  * @param string $plugin_id
  *   The plugin_id for the plugin instance.
  * @param mixed $plugin_definition
  *   The plugin implementation definition.
  * @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
  * @param \Drupal\Core\Entity\EntityStorageInterface $payment_storage
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  * @param \Drupal\Core\Utility\LinkGeneratorInterface $link_generator
  * @param \Drupal\Core\Render\RendererInterface $renderer
  * @param \Drupal\Core\Session\AccountInterface $current_user
  * @param \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorManagerInterface $plugin_selector_manager
  * @param \Drupal\plugin\PluginType\PluginTypeInterface $payment_method_type
  * @param \Drupal\Component\Utility\Random $random
  */
 public function __construct(array $configuration, $plugin_id, array $plugin_definition, RequestStack $request_stack, EntityStorageInterface $payment_storage, TranslationInterface $string_translation, DateFormatter $date_formatter, LinkGeneratorInterface $link_generator, RendererInterface $renderer, AccountInterface $current_user, PluginSelectorManagerInterface $plugin_selector_manager, PluginTypeInterface $payment_method_type, Random $random)
 {
     parent::__construct($configuration, $plugin_id, $plugin_definition);
     $this->currentUser = $current_user;
     $this->dateFormatter = $date_formatter;
     $this->linkGenerator = $link_generator;
     $this->paymentMethodType = $payment_method_type;
     $this->paymentStorage = $payment_storage;
     $this->pluginSelectorManager = $plugin_selector_manager;
     $this->random = $random;
     $this->renderer = $renderer;
     $this->requestStack = $request_stack;
     $this->stringTranslation = $string_translation;
 }