You are here

public function ILT::setDate in Opigno Instructor-led Trainings 3.x

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

Sets the entity's date range.

Parameters

array $date: The date range. Array keys:

  • value - Start date string in the 'Y-m-d H:i:s' format.
  • end_value - End date string in the 'Y-m-d H:i:s' format.

Return value

$this

Overrides ILTInterface::setDate

File

src/Entity/ILT.php, line 135

Class

ILT
Defines the ILT entity.

Namespace

Drupal\opigno_ilt\Entity

Code

public function setDate(array $date) {
  $this
    ->set('date', $date);
  return $this;
}