You are here

public function DemoContent::count in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  2. 8 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  3. 8.2 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  4. 8.3 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  5. 8.4 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  6. 8.5 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  7. 8.6 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  8. 8.7 modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  9. 10.3.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  10. 10.0.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  11. 10.1.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()
  12. 10.2.x modules/custom/social_demo/src/DemoContent.php \Drupal\social_demo\DemoContent::count()

Returns quantity of created items.

Return value

int Returns quantity of created items.

Overrides DemoContentInterface::count

1 call to DemoContent::count()
EventType::count in modules/custom/social_demo/src/Plugin/DemoContent/EventType.php
Returns quantity of created items.
1 method overrides DemoContent::count()
EventType::count in modules/custom/social_demo/src/Plugin/DemoContent/EventType.php
Returns quantity of created items.

File

modules/custom/social_demo/src/DemoContent.php, line 110

Class

DemoContent
Class DemoContent.

Namespace

Drupal\social_demo

Code

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