public function DateTimePlus::__clone in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::__clone()
- 9 core/lib/Drupal/Component/Datetime/DateTimePlus.php \Drupal\Component\Datetime\DateTimePlus::__clone()
Implements the magic __clone method.
Deep-clones the DateTime object we're wrapping.
File
- core/
lib/ Drupal/ Component/ Datetime/ DateTimePlus.php, line 406
Class
- DateTimePlus
- Wraps DateTime().
Namespace
Drupal\Component\DatetimeCode
public function __clone() {
$this->dateTimeObject = clone $this->dateTimeObject;
}