You are here

public function BlocksDataCollector::getLoadedBlocksCount in Devel 4.x

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

Return value

int

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

File

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

Class

BlocksDataCollector
Class BlocksDataCollector.

Namespace

Drupal\webprofiler\DataCollector

Code

public function getLoadedBlocksCount() {
  return count($this
    ->getLoadedBlocks());
}