You are here

public function BlocksDataCollector::getRenderedBlocksCount in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/DataCollector/BlocksDataCollector.php \Drupal\webprofiler\DataCollector\BlocksDataCollector::getRenderedBlocksCount()
  2. 8.2 webprofiler/src/DataCollector/BlocksDataCollector.php \Drupal\webprofiler\DataCollector\BlocksDataCollector::getRenderedBlocksCount()
  3. 4.x webprofiler/src/DataCollector/BlocksDataCollector.php \Drupal\webprofiler\DataCollector\BlocksDataCollector::getRenderedBlocksCount()

Return value

int

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

File

webprofiler/src/DataCollector/BlocksDataCollector.php, line 66

Class

BlocksDataCollector
Class BlocksDataCollector

Namespace

Drupal\webprofiler\DataCollector

Code

public function getRenderedBlocksCount() {
  return count($this
    ->getRenderedBlocks());
}