You are here

public function OpignoModule::getRandomActivitiesCount in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoModule.php \Drupal\opigno_module\Entity\OpignoModule::getRandomActivitiesCount()

Get random activities count.

1 call to OpignoModule::getRandomActivitiesCount()
OpignoModule::getRandomActivity in src/Entity/OpignoModule.php
Returns random activity.

File

src/Entity/OpignoModule.php, line 205

Class

OpignoModule
Defines the Module entity.

Namespace

Drupal\opigno_module\Entity

Code

public function getRandomActivitiesCount() {
  return $this
    ->get('random_activities')->value;
}