You are here

public function SalesforceMappingLocalTask::__construct in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping_ui/src/Plugin/Derivative/SalesforceMappingLocalTask.php \Drupal\salesforce_mapping_ui\Plugin\Derivative\SalesforceMappingLocalTask::__construct()

Creates an SalesforceMappingLocalTask object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $etm: The entity manager.

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The translation manager.

File

modules/salesforce_mapping_ui/src/Plugin/Derivative/SalesforceMappingLocalTask.php, line 34

Class

SalesforceMappingLocalTask
Provides local task definitions for all entity bundles.

Namespace

Drupal\salesforce_mapping_ui\Plugin\Derivative

Code

public function __construct(EntityTypeManagerInterface $etm, TranslationInterface $string_translation) {
  $this->etm = $etm;
  $this->stringTranslation = $string_translation;
}