Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/Type/DateTimeInterface.php \Drupal\Core\TypedData\Type\DateTimeInterface::setDateTime()
- 9 core/lib/Drupal/Core/TypedData/Type/DateTimeInterface.php \Drupal\Core\TypedData\Type\DateTimeInterface::setDateTime()
Sets the date time object.
Parameters
\Drupal\Core\Datetime\DrupalDateTime $dateTime: An instance of a date time object.
File
- core/
lib/ Drupal/ Core/ TypedData/ Type/ DateTimeInterface.php, line 28
Class
- DateTimeInterface
- Interface for dates, optionally including a time.
Namespace
Drupal\Core\TypedData\TypeCode
public function setDateTime(DrupalDateTime $dateTime);