10 calls to DateTimePlus::createFromFormat() in Drupal 10
- DateTimeFormatConstraintValidator::validate in core/
modules/ datetime/ src/ Plugin/ Validation/ Constraint/ DateTimeFormatConstraintValidator.php - DateTimePlusTest::providerTestDateDiff in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Provides data for date tests.
- DateTimePlusTest::providerTestInvalidDateDiff in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Provides data for date tests.
- DateTimePlusTest::testChainable in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Tests that object methods are chainable.
- DateTimePlusTest::testDateFormat in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Tests creating dates from format strings.
- DateTimePlusTest::testDefaultDateTime in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Tests setting the default time for date-only objects.
- DateTimePlusTest::testGetPhpDateTime in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - @covers ::getPhpDateTime
- DateTimePlusTest::testInvalidDates in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Tests invalid date handling.
- DateTimePlusTest::testValidateFormat in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Tests the $settings['validate_format'] parameter in ::createFromFormat().
- FormatDate::transform in core/
modules/ migrate/ src/ Plugin/ migrate/ process/ FormatDate.php - Performs the associated process.