You are here

public function ILT::getResultsIds in Opigno Instructor-led Trainings 8

Same name and namespace in other branches
  1. 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::getResultsIds()

Returns the related ILT results.

Return value

array|null The related ILT results, or NULL in case there are no results.

Overrides ILTInterface::getResultsIds

File

src/Entity/ILT.php, line 195

Class

ILT
Defines the ILT entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function getResultsIds() {
  $iltr_ids = \Drupal::entityQuery('opigno_ilt_result')
    ->condition('opigno_ilt', $this
    ->id())
    ->execute();
  if ($iltr_ids) {
    return $iltr_ids;
  }
  return NULL;
}