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;
}
doc_Drupal
2016-10-29 09:12:03
Comments
Leave a Comment

Please login to continue.