You are here

public function ViewsDataCollector::getViewsCount in Devel 4.x

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

Return value

int

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

File

webprofiler/src/DataCollector/ViewsDataCollector.php, line 86

Class

ViewsDataCollector
Collects data about rendered views.

Namespace

Drupal\webprofiler\DataCollector

Code

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