protected function FeatureListMenuLink::count in Configuration selector 8
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/FeatureListMenuLink.php \Drupal\config_selector\Plugin\Derivative\FeatureListMenuLink::count()
Gets the count of feature entities.
Return value
int The count of feature entities.
1 call to FeatureListMenuLink::count()
- FeatureListMenuLink::getDerivativeDefinitions in src/
Plugin/ Derivative/ FeatureListMenuLink.php - Gets the definition of all derivatives of a base plugin.
File
- src/
Plugin/ Derivative/ FeatureListMenuLink.php, line 70
Class
- FeatureListMenuLink
- Test derivative with an unsafe string.
Namespace
Drupal\config_selector\Plugin\DerivativeCode
protected function count() {
return $this->entityTypeManager
->getStorage('config_selector_feature')
->getQuery()
->accessCheck(TRUE)
->count()
->execute();
}