You are here

public function StateDataCollector::getStateKeysCount in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/StateDataCollector.php \Drupal\webprofiler\DataCollector\StateDataCollector::getStateKeysCount()
  2. 8 webprofiler/src/DataCollector/StateDataCollector.php \Drupal\webprofiler\DataCollector\StateDataCollector::getStateKeysCount()
  3. 8.2 webprofiler/src/DataCollector/StateDataCollector.php \Drupal\webprofiler\DataCollector\StateDataCollector::getStateKeysCount()

Twig callback to show all requested state keys.

1 call to StateDataCollector::getStateKeysCount()
StateDataCollector::getPanelSummary in webprofiler/src/DataCollector/StateDataCollector.php
Returns the string used in vertical tab summary.

File

webprofiler/src/DataCollector/StateDataCollector.php, line 34

Class

StateDataCollector
Provides a data collector to get all requested state values.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getStateKeysCount() {
  return count($this->data['state_get']);
}