public function FieldModuleUninstallValidator::__construct

public FieldModuleUninstallValidator::__construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation)

Constructs the object.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

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

File

core/lib/Drupal/Core/Field/FieldModuleUninstallValidator.php, line 28

Class

FieldModuleUninstallValidator
Validates module uninstall readiness based on defined storage definitions.

Namespace

Drupal\Core\Field

Code

public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation) {
  $this->entityManager = $entity_manager;
  $this->stringTranslation = $string_translation;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!FieldModuleUninstallValidator.php/function/FieldModuleUninstallValidator::__construct/8.1.x