8 calls to DateTimePlus::createFromFormat() in Drupal 8
- DateTimeFormatConstraintValidator::validate in core/
modules/ datetime/ src/ Plugin/ Validation/ Constraint/ DateTimeFormatConstraintValidator.php - Checks if the passed value is valid.
- 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::testDateFormat in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Test 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 - Test invalid date handling.
- DateTimePlusTest::testValidateFormat in core/
tests/ Drupal/ Tests/ Component/ Datetime/ DateTimePlusTest.php - Tests the $settings['validate_format'] parameter in ::createFromFormat().