You are here

private function ILTDeleteForm::_hasResults in Opigno Instructor-led Trainings 8

Same name and namespace in other branches
  1. 3.x src/Form/ILTDeleteForm.php \Drupal\opigno_ilt\Form\ILTDeleteForm::_hasResults()

Checks if ILT has results.

1 call to ILTDeleteForm::_hasResults()
ILTDeleteForm::buildForm in src/Form/ILTDeleteForm.php
Form constructor.

File

src/Form/ILTDeleteForm.php, line 23

Class

ILTDeleteForm
Provides a form for deleting a opigno_ilt entity.

Namespace

Drupal\opigno_ilt\Form

Code

private function _hasResults() {
  $ilt = ILT::load($this->entity
    ->id());
  if ($ilt
    ->getResultsIds()) {
    return TRUE;
  }
  return FALSE;
}