You are here

public function ILT::getEndDate 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::getEndDate()

Returns the entity's end date.

Return value

string The end date string in the 'Y-m-d H:i:s' format, or NULL in case the date range field has not been set on the entity.

Overrides ILTInterface::getEndDate

File

src/Entity/ILT.php, line 121

Class

ILT
Defines the ILT entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function getEndDate() {
  return $this
    ->get('date')->end_value;
}