You are here

public function SequentialNumberPatternBase::__construct in Commerce Core 8.2

Constructs a new SequentialNumberPatternBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

\Drupal\Component\Datetime\TimeInterface $time: The time.

\Drupal\Core\Utility\Token $token: The token service.

Overrides NumberPatternBase::__construct

File

modules/number_pattern/src/Plugin/Commerce/NumberPattern/SequentialNumberPatternBase.php, line 69

Class

SequentialNumberPatternBase
Provides a base class for number pattern plugins which support sequences.

Namespace

Drupal\commerce_number_pattern\Plugin\Commerce\NumberPattern

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Connection $connection, EntityTypeManagerInterface $entity_type_manager, LockBackendInterface $lock, TimeInterface $time, Token $token) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $token);
  $this->connection = $connection;
  $this->entityTypeManager = $entity_type_manager;
  $this->lock = $lock;
  $this->time = $time;
}