public function MenuItemExtrasUninstallValidator::__construct in Menu Item Extras 8.2
Same name in this branch
- 8.2 src/MenuItemExtrasUninstallValidator.php \Drupal\menu_item_extras\MenuItemExtrasUninstallValidator::__construct()
- 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_extrasCode
public function __construct(Connection $connection, TranslationInterface $string_translation) {
$this->connection = $connection;
$this->stringTranslation = $string_translation;
}