You are here

protected function FeatureListMenuLink::count in Configuration selector 8.2

Same name and namespace in other branches
  1. 8 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\Derivative

Code

protected function count() {
  return $this->entityTypeManager
    ->getStorage('config_selector_feature')
    ->getQuery()
    ->accessCheck(TRUE)
    ->count()
    ->execute();
}