You are here

public function MenuItemExtrasUninstallValidator::__construct in Menu Item Extras 8.2

Same name in this branch
  1. 8.2 src/MenuItemExtrasUninstallValidator.php \Drupal\menu_item_extras\MenuItemExtrasUninstallValidator::__construct()
  2. 8.2 src/ProxyClass/MenuItemExtrasUninstallValidator.php \Drupal\menu_item_extras\ProxyClass\MenuItemExtrasUninstallValidator::__construct()

Constructs a new MenuItemExtrasUninstallValidator.

Parameters

\Drupal\Core\Database\Connection $connection: The current database connection.

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

File

src/MenuItemExtrasUninstallValidator.php, line 33

Class

MenuItemExtrasUninstallValidator
Prevents uninstall menu item extras module if there are extra data.

Namespace

Drupal\menu_item_extras

Code

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