function DateTimePlus::getPhpDateTime
Same name in other branches
- 8.9.x core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::getPhpDateTime()
- 10 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::getPhpDateTime()
- 11.x core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::getPhpDateTime()
Gets a clone of the proxied PHP \DateTime object wrapped by this class.
Return value
\DateTime A clone of the wrapped PHP \DateTime object.
File
-
core/
lib/ Drupal/ Component/ Datetime/ DateTimePlus.php, line 722
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function getPhpDateTime() {
return clone $this->dateTimeObject;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.