public function CmsBlogUninstallValidator::__construct in Glazed CMS Blog 8
Same name in this branch
- 8 src/CmsBlogUninstallValidator.php \Drupal\cms_blog\CmsBlogUninstallValidator::__construct()
- 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_blogCode
public function __construct(QueryFactory $query_factory) {
$this->queryFactory = $query_factory;
}