public function Token::__construct in Commerce AutoSKU 8.2
Constructs a new Token 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\Utility\Token $token: The token manager.
Overrides CommerceAutoSkuGeneratorBase::__construct
File
- src/
Plugin/ CommerceAutoSkuGenerator/ Token.php, line 45
Class
- Token
- Provides the token commerce_autosku generator.
Namespace
Drupal\commerce_autosku\Plugin\CommerceAutoSkuGeneratorCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, \Drupal\Core\Utility\Token $token) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager);
$this->token = $token;
$this
->setConfiguration($configuration);
}