public function DisplayManager::countDisplayableItems in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/phpunit_example/src/DisplayManager.php \Drupal\phpunit_example\DisplayManager::countDisplayableItems()
A count of how many items exist.
Return value
int The number of items that exist.
File
- phpunit_example/
src/ DisplayManager.php, line 43
Class
- DisplayManager
- An example class to demonstrate unit testing.
Namespace
Drupal\phpunit_exampleCode
public function countDisplayableItems() {
return count($this->items);
}