function DisplayManager::countDisplayableItems

Same name in this branch
  1. 4.0.x modules/phpunit_example/src/DisplayManager.php \Drupal\phpunit_example\DisplayManager::countDisplayableItems()
Same name in other branches
  1. 3.x modules/phpunit_example/src/DisplayManager.php \Drupal\phpunit_example\DisplayManager::countDisplayableItems()
  2. 8.x-1.x 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

modules/testing_example/src/DisplayManager.php, line 43

Class

DisplayManager
An example class to demonstrate unit testing.

Namespace

Drupal\testing_example

Code

public function countDisplayableItems() {
    return count($this->items);
}