public function Token::__construct in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Token.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Token::__construct()
- 5.0.x modules/salesforce_mapping/src/Plugin/SalesforceMappingField/Token.php \Drupal\salesforce_mapping\Plugin\SalesforceMappingField\Token::__construct()
SalesforceMappingFieldPluginBase constructor.
Parameters
array $configuration: Plugin config.
string $plugin_id: Plugin id.
array $plugin_definition: Plugin definition.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: Entity type bundle info service.
\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: Entity field manager.
\Drupal\salesforce\Rest\RestClientInterface $rest_client: Salesforce client.
\Drupal\Core\Entity\EntityTypeManagerInterface $etm: ETM service.
\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: Date formatter service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
\Drupal\Component\Plugin\Exception\PluginNotFoundException
Overrides SalesforceMappingFieldPluginBase::__construct
File
- modules/
salesforce_mapping/ src/ Plugin/ SalesforceMappingField/ Token.php, line 48
Class
- Token
- Adapter for entity Token and fields.
Namespace
Drupal\salesforce_mapping\Plugin\SalesforceMappingFieldCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, EntityTypeBundleInfoInterface $entity_type_bundle_info, EntityFieldManagerInterface $entity_field_manager, RestClientInterface $rest_client, EntityTypeManagerInterface $etm, DateFormatterInterface $dateFormatter, EventDispatcherInterface $event_dispatcher, TokenService $token, RendererInterface $renderer) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_bundle_info, $entity_field_manager, $rest_client, $etm, $dateFormatter, $event_dispatcher);
$this->token = $token;
$this->renderer = $renderer;
}