public function ILT::getDate in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Entity/ILT.php \Drupal\opigno_ilt\Entity\ILT::getDate()
Returns the entity's date range.
Return value
array The date range. Array keys:
- value - Start date string in the 'Y-m-d H:i:s' format or NULL.
- end_value - End date string in the 'Y-m-d H:i:s' format or NULL.
Overrides ILTInterface::getDate
File
- src/
Entity/ ILT.php, line 128
Class
- ILT
- Defines the ILT entity.
Namespace
Drupal\opigno_ilt\EntityCode
public function getDate() {
return $this
->get('date')
->getValue()[0];
}