You are here

public function BundlePluginUninstallValidator::__construct in Entity API 8

Constructs the object.

Parameters

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

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

File

src/BundlePlugin/BundlePluginUninstallValidator.php, line 32

Class

BundlePluginUninstallValidator
Prevents uninstalling modules with bundle plugins in case of found data.

Namespace

Drupal\entity\BundlePlugin

Code

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