You are here

public function CmsBlogUninstallValidator::__construct in Glazed CMS Blog 8

Same name in this branch
  1. 8 src/CmsBlogUninstallValidator.php \Drupal\cms_blog\CmsBlogUninstallValidator::__construct()
  2. 8 src/ProxyClass/CmsBlogUninstallValidator.php \Drupal\cms_blog\ProxyClass\CmsBlogUninstallValidator::__construct()

Constructs a new CmsBlogUninstallValidator.

Parameters

\Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory.

File

src/CmsBlogUninstallValidator.php, line 26

Class

CmsBlogUninstallValidator
Prevents CMS Blog module from being uninstalled if any blog entries exist.

Namespace

Drupal\cms_blog

Code

public function __construct(QueryFactory $query_factory) {
  $this->queryFactory = $query_factory;
}