You are here

private function ILTDeleteForm::_hasTraining 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::_hasTraining()

Checks if ILT has parent training.

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

File

src/Form/ILTDeleteForm.php, line 36

Class

ILTDeleteForm
Provides a form for deleting a opigno_ilt entity.

Namespace

Drupal\opigno_ilt\Form

Code

private function _hasTraining() {
  $training = $this->entity
    ->getTrainingId();
  return (bool) $training;
}