public function DateTimeInterface::setDateTime in Drupal 10
Same name and namespace in other branches
- 8 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.
1 method overrides DateTimeInterface::setDateTime()
- DateTimeIso8601::setDateTime in core/
lib/ Drupal/ Core/ TypedData/ Plugin/ DataType/ DateTimeIso8601.php - Sets the 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);