Problem/Motivation

DateTimeItem and DateRangeItem both have class constants. These should be on interfaces.

Proposed resolution

- Move the DateTimeItem constants onto DateTimeItemInterface as-is.

- Create DateRangeItemInterface, and move DateRangeItem constants as-is.

- Update usages to refer to the interface or static:: as appropriate.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#4 datetime-interfaces_constants-2915046-4-D8.patch35.45 KBioana apetri
#7 datetime-interfaces_constants-2915046-6-D8.patch34.84 KBioana apetri
#15 datetime-interfaces_constants-2915046-15-D8.patch35.47 KBioana apetri
#23 2915046-23-D8.patch34.92 KBmohit1604
#29 interdiff-23-29.txt448 bytesjofitz
#29 2915046-29.patch35.46 KBjofitz
#33 2915046-33-D8.patch34.95 KBmohit1604
#35 datetime-interface-constant-2915046-35.patch34.88 KBmsankhala
#38 datetime-interface-constant-2915046-36.patch35.47 KBkporras07
#38 interdiff_35_36.txt1.79 KBkporras07
#40 datetime-interface-constant-2915046-40.patch35.81 KBkporras07
#41 interdiff_38-40.txt1.37 KBmohit1604
#44 report.txt2.75 KBmpdonadio
#46 datetime-interface-constant-2915046-46.patch46.09 KBmsankhala
#52 interdiff-46-52.txt6.4 KBjofitz
#52 2915046-52.patch47.71 KBjofitz
#56 datetime-interface-constant-2915046-56.patch46.2 KBmsankhala
#56 interdiff-52-56.txt1.64 KBmsankhala
#64 datetime-interface-constant-2915046-64.patch44 KBkostyashupenko
#73 2915046-73.patch23.79 KBdharmeshmertwal
#74 2915046-74.patch26.48 KBranjith_kumar_k_u
#74 interdiff_73-74.txt6.17 KBranjith_kumar_k_u

Issue fork drupal-2915046

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpdonadio created an issue. See original summary.

jibran’s picture

Status: Postponed » Active
ioana apetri’s picture

Assigned: Unassigned » ioana apetri

I will work on this issue.

ioana apetri’s picture

Status: Active » Needs review
FileSize
35.45 KB

Here is my patch, please review it:)

Status: Needs review » Needs work

The last submitted patch, 4: datetime-interfaces_constants-2915046-4-D8.patch, failed testing. View results

mpdonadio’s picture

Not sure why the CI run stopped, but looks like there were some fails and exceptions:

https://dispatcher.drupalci.org/job/drupal_patches/41229/consoleText

ioana apetri’s picture

Status: Needs work » Needs review
FileSize
34.84 KB

I checked the reports but I don't know why the 'FieldTypePluginManagerTest' class fails.
Here is the new patch with some updated.
Thanks.

Status: Needs review » Needs work

The last submitted patch, 7: datetime-interfaces_constants-2915046-6-D8.patch, failed testing. View results

mpdonadio’s picture

The report in https://www.drupal.org/pift-ci-job/838784 shows the problems. The `use` block for all of those classes need to be adjusted to add/swap out the new interface.

snehi’s picture

Status: Needs work » Needs review

With the latest test-bot results, i think the patch is looks good and even test is passed.
Changing the status from need work to need review.
Re-run the tests to finalizing the patch.

ioana apetri’s picture

thanks:)

Status: Needs review » Needs work

The last submitted patch, 7: datetime-interfaces_constants-2915046-6-D8.patch, failed testing. View results

mpdonadio’s picture

The fails in #7 are definitely real. They are from error messages:

1) Drupal\Tests\datetime_range\Functional\DateRangeFieldTest::testDateRangeField
PHPUnit_Framework_Exception: Fatal error: Interface 'Drupal\datetime_range\Plugin\Field\FieldType\DateRangeItemInterface' not found in /var/www/html/core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php on line 25

+++ b/core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItem.php
@@ -22,12 +22,7 @@
+class DateRangeItem extends DateTimeItem implements DateRangeItemInterface {

The file for DateRangeItemInterface doesn't exists in the patch. It is possible when it was rolled, the file wasn't staged (eg, it was done via `git -a` and not `git -A`.

ioana apetri’s picture

I am checking:)

ioana apetri’s picture

Status: Needs work » Needs review
FileSize
35.47 KB

Idead, it was this problem. Thanks

mpdonadio’s picture

Assigned: ioana apetri » mpdonadio

Assigning to myself for a full review. May take me a day or two to get to this.

jhedstrom’s picture

Issue tags: +Needs change record
jibran’s picture

Let's update the existing one.

jibran’s picture

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mpdonadio’s picture

Assigned: mpdonadio » Unassigned
Status: Needs review » Needs work
Issue tags: +Needs reroll

Doesn't apply to 8.6.x b/c a conflict in DateTimeComputed, so we need a reroll.

mohit1604’s picture

Assigned: Unassigned » mohit1604
mohit1604’s picture

Assigned: mohit1604 » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
34.92 KB

Patch for version 8.6.x , Please review it :)

Status: Needs review » Needs work

The last submitted patch, 23: 2915046-23-D8.patch, failed testing. View results

mohit1604’s picture

Assigned: Unassigned » mohit1604
mohit1604’s picture

Assigned: mohit1604 » Unassigned
mohit1604’s picture

Issue tags: +Needs reroll
mpdonadio’s picture

It looks like the patch in #23 wasn't rolled with the new file.

jofitz’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
448 bytes
35.46 KB

Re-roll of patch in #15 (with interdiff against patch in #23 for reference).

mohit1604’s picture

Status: Needs review » Reviewed & tested by the community

Patch #29 looks good to me. Marking RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 29: 2915046-29.patch, failed testing. View results

mpdonadio’s picture

Issue tags: +Needs reroll
mohit1604’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
34.95 KB

This should work fine :)

Status: Needs review » Needs work

The last submitted patch, 33: 2915046-33-D8.patch, failed testing. View results

msankhala’s picture

+++ b/core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
@@ -3,7 +3,7 @@
 use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface;

This patch fails because of this duplicate use statement. Here is updated patch.

msankhala’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 35: datetime-interface-constant-2915046-35.patch, failed testing. View results

kporras07’s picture

Status: Needs work » Needs review
FileSize
35.47 KB
1.79 KB

Patch updated with some references that were missing and added missing interface.

Status: Needs review » Needs work

The last submitted patch, 38: datetime-interface-constant-2915046-36.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

kporras07’s picture

Status: Needs work » Needs review
FileSize
35.81 KB

One more try

mohit1604’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
1.37 KB

Looks good to me marking RTBC.

jibran’s picture

Status: Reviewed & tested by the community » Needs work

We still have to update change record.

mpdonadio’s picture

FileSize
2.75 KB
+++ b/core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItemInterface.php
@@ -0,0 +1,15 @@
+/**
+ * Interface definition for Datetime items.
+ */

"Interface definition for Daterange items."

There are also a bunch of DateRangeItem:: usages left. See the report from PhpStorm.

msankhala’s picture

Assigned: Unassigned » msankhala
msankhala’s picture

Here is updated patch which removes all the DateRangeItem:: constant mentioned in #44 and unused use statements.

msankhala’s picture

Assigned: msankhala » Unassigned
Status: Needs work » Needs review
anmolgoyal74’s picture

Status: Needs review » Reviewed & tested by the community

Patch #46 looks good to me. Marking RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 46: datetime-interface-constant-2915046-46.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

alexpott’s picture

Status: Needs work » Reviewed & tested by the community

Testbot had a hiccup re-rtbcing

mpdonadio’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItemInterface.php
    @@ -0,0 +1,15 @@
    +/**
    + * Interface definition for Date range items.
    ...
    +interface DateRangeItemInterface {
    +
    ...
    +   */
    

    Super nit, but "Interface definition for Daterange items."

  2. +++ b/core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeItemInterface.php
    @@ -0,0 +1,15 @@
    +interface DateRangeItemInterface {
    +
    

    PHP allows interfaces to extend other interfaces, so this should be `interface DateRangeItemInterface extends DateTimeItemInterface`

  3. +++ b/core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php
    @@ -38,7 +38,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
    -    if ($this->getFieldSetting('datetime_type') == DateRangeItem::DATETIME_TYPE_DATETIME) {
    +    if ($this->getFieldSetting('datetime_type') == DateTimeItemInterface::DATETIME_TYPE_DATETIME) {
           $time_type = $this->getSetting('time_type');
    

    And then, we can change hunks like this to `DateRangeItemInterface::DATETIME_TYPE_DATETIME`. We just need to remember to add the new use (where needed) and remove the old one (as appropriate).

jofitz’s picture

Status: Needs work » Needs review
FileSize
6.4 KB
47.71 KB

Address @mpdonadio's comments in #51.

anmolgoyal74’s picture

Status: Needs review » Reviewed & tested by the community

The patch #52 applied successfully and takes all points into account as stated by @mpdonadio in #51.
Thanks @JoFitzgerald for the patch.
Marking it RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/sites/default/default.settings.php
@@ -573,10 +573,10 @@
-# $settings['locale_custom_strings_en'][''] = [
+# $settings['locale_custom_strings_en'][''] = array(
...
-# ];
+# );
 

@@ -630,7 +630,7 @@
-# $settings['bootstrap_config_storage'] = ['Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage'];
+# $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage');

These are unexpected changes.

msankhala’s picture

Assigned: Unassigned » msankhala

Fixing the issues mentioned by @alexpott. Even all the changes in default.settings.php is unexpected which convert square [] array syntax to array() syntax.

msankhala’s picture

Here is updated patch which revert the default.settnigs.php changes. I am not sure if @Jo Fitzgerald's intention of making these changes was to make the uniform syntax of array in this file. Currently default.settings.php file uses mixture of square [] syntax and array() syntax which is not a good idea. Fixing this kind of inconsistency as a side effect in this issue is also not a good idea. Converting array syntax to square array syntax should be followed up on this #2776975: March 3, 2017: Convert core to array syntax coding standards for Drupal 8.3.x RC phase

msankhala’s picture

Assigned: msankhala » Unassigned
Status: Needs work » Needs review
jhedstrom’s picture

Status: Needs review » Reviewed & tested by the community

The latest patch addresses the remaining feedback I think.

larowlan’s picture

Status: Reviewed & tested by the community » Needs work
  1. +++ b/core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDatelistWidget.php
    @@ -4,7 +4,7 @@
    +use Drupal\datetime_range\Plugin\Field\FieldType\DateRangeItemInterface;
    
    @@ -38,7 +38,7 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
    +    if ($this->getFieldSetting('datetime_type') == DateRangeItemInterface::DATETIME_TYPE_DATETIME) {
    
    @@ -103,7 +103,7 @@ public function settingsForm(array $form, FormStateInterface $form_state) {
    +    if ($this->getFieldSetting('datetime_type') == DateRangeItemInterface::DATETIME_TYPE_DATETIME) {
    
    @@ -146,7 +146,7 @@ public function settingsSummary() {
    +    if ($this->getFieldSetting('datetime_type') == DateRangeItemInterface::DATETIME_TYPE_DATETIME) {
    

    Should these refer to the parent DateTimeInterface instead of the DateTimeRangeInterface?

    DateTimeRangeInterface should only be used for the DATETIME_TYPE_ALLDAY constant right?

  2. +++ b/core/modules/datetime_range/tests/src/Functional/DateRangeFieldTest.php
    @@ -57,7 +57,7 @@ public function testDateRangeField() {
    +      $this->fieldStorage->setSetting('datetime_type', DateRangeItemInterface::DATETIME_TYPE_DATE);
    
    @@ -280,7 +280,7 @@ public function testDatetimeRangeField() {
    +    $this->fieldStorage->setSetting('datetime_type', DateRangeItemInterface::DATETIME_TYPE_DATETIME);
    
    @@ -624,7 +624,7 @@ public function testDatelistWidget() {
    +    $this->fieldStorage->setSetting('datetime_type', DateRangeItemInterface::DATETIME_TYPE_DATE);
    
    @@ -695,7 +695,7 @@ public function testDatelistWidget() {
    +    $this->fieldStorage->setSetting('datetime_type', DateRangeItemInterface::DATETIME_TYPE_DATETIME);
    
    @@ -983,7 +983,7 @@ public function testDefaultValue() {
    +      'settings' => ['datetime_type' => DateRangeItemInterface::DATETIME_TYPE_DATE],
    
    @@ -1142,7 +1142,7 @@ public function testDefaultValue() {
    +    $this->fieldStorage->setSetting('datetime_type', DateRangeItemInterface::DATETIME_TYPE_DATETIME);
    
    @@ -1350,7 +1350,7 @@ public function testDateStorageSettings() {
    +        'datetime_type' => DateRangeItemInterface::DATETIME_TYPE_DATE,
    

    Few other instances

  3. +++ b/core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php
    @@ -50,7 +50,7 @@ protected function setUp() {
    -      'settings' => ['datetime_type' => DateRangeItem::DATETIME_TYPE_DATE],
    +      'settings' => ['datetime_type' => DateTimeItemInterface::DATETIME_TYPE_DATE],
    

    This looks right, but in other places we've done it with the DateTimeRangeInterface - I think we should be consistent, and use the defining interface, not the parent

msankhala’s picture

@larowlan Thanks for review. In point 1. and 2. all the places you mentioned we are using DateRangeItemInterface::<CONSTANT> only where it is related to daterange field like in DateRangeDatelistWidget.php and DateRangeFieldTest.php and DateRangeItemInterface extends DateTimeItemInterface. So i think it is safe to use DateRangeItemInterface::<CONSTANT> for daterange field. I am not sure if there is any downside to this.

I agree with you on point 3 we should use DateTimeRangeInterface instead of DateTimeItemInterface because that test is related to DateRangeItemTest.

+++ b/core/modules/datetime_range/tests/src/Kernel/DateRangeItemTest.php
@@ -50,7 +50,7 @@ protected function setUp() {
+      'settings' => ['datetime_type' => DateTimeItemInterface::DATETIME_TYPE_DATE],

@@ -82,7 +82,7 @@ protected function setUp() {
-    $this->fieldStorage->setSetting('datetime_type', DateRangeItem::DATETIME_TYPE_DATE);

This same goes for line 86 as well.

rakesh.gectcr’s picture

Issue tags: +Nwdug_may18

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mpdonadio’s picture

Issue tags: +Needs reroll

This needs a reroll. But, re #59 for DateTimeItemInterface vs DateRangeItemInterface usages, I think if the context is in DateRange proper or referring to DateRange usages, then that interface should be used.

kostyashupenko’s picture

Status: Needs review » Needs work

The last submitted patch, 64: datetime-interface-constant-2915046-64.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

dharmeshmertwal’s picture

Status: Needs work » Needs review
FileSize
23.79 KB
ranjith_kumar_k_u’s picture

Status: Needs review » Needs work

The last submitted patch, 74: 2915046-74.patch, failed testing. View results

rpayanm made their first commit to this issue’s fork.

andregp’s picture

Status: Needs work » Needs review

MR seems okay. The last fail is random and unrelated. Changing status to Needs Review.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

nod_’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

D10 version needed
At this time we need a D10.1.x patch or MR for this issue.

Patch or MR doesn't apply anymore
The last patch or MR doesn't apply to the target branch, please reroll the code so that it can be reviewed by the automated testbot.

Bhanu951’s picture

Assigned: Unassigned » Bhanu951

Bhanu951’s picture

Assigned: Bhanu951 » Unassigned
Status: Needs work » Needs review
Issue tags: -Needs reroll

Re Rolled for MR #2321 to 10.1.x branch

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative

Was tagged for change record updates. Maybe this needs it's own now.

Bhanu951’s picture

Status: Needs work » Needs review
Issue tags: -Needs change record updates

Draft CR Created.

smustgrave’s picture

Status: Needs review » Needs work

Line core/modules/datetime/tests/src/Kernel/Views/DateTimeHandlerTestBase.php
------ ----------------------------------------------------------------------------------
72 Access to an undefined static property
static(Drupal\Tests\datetime\Kernel\Views\DateTimeHandlerTestBase)::$field_type.
------ ----------------------------------------------------------------------------------

------ -------------------------------------------------------------------------
Line core/modules/datetime/tests/src/Kernel/Views/FilterDateTest.php
------ -------------------------------------------------------------------------
53 Access to an undefined static property
static(Drupal\Tests\datetime\Kernel\Views\FilterDateTest)::$field_name.
------ -------------------------------------------------------------------------

------ -------------------------------------------------------------------------------
Line core/modules/datetime_range/tests/src/Kernel/Views/FilterDateTest.php
------ -------------------------------------------------------------------------------
60 Access to an undefined static property
static(Drupal\Tests\datetime_range\Kernel\Views\FilterDateTest)::$field_name.

sahil.goyal made their first commit to this issue’s fork.

sahil.goyal’s picture

Addressed the CCF error as described in #86.

Bhanu951’s picture

@sahil.goyal changes to variable name format should be in other way around.

Bhanu951’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Moving to NW for failures in the MR.

sahil.goyal’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Searching for DateTimeItem:: still see there are about 30+ instances remaining.

rpayanm’s picture

Status: Needs work » Needs review

Please review.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Will let the committers decide but there are still some instances of DateTimeItem:: but they are in comments for some. Should these be updated too? Didn't think it was worth holding up the ticket.

  /**
   * Tests DateTimeItem::setValue().
   */
Bhanu951’s picture

grep -R --color "DateTimeItem::" ./core
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: * Tests DateTimeItem::setValue().
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: // Test DateTimeItem::setValue() using string.
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: $this->assertEquals($value, $entity->field_datetime[0]->value, 'DateTimeItem::setValue() works with string value.');
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: // Test DateTimeItem::setValue() using property array.
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: $this->assertEquals($value, $entity->field_datetime[0]->value, 'DateTimeItem::setValue() works with array value.');
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: // Test DateTimeItem::setValue() using string.
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: $this->assertEquals($value, $entity->field_datetime[0]->value, 'DateTimeItem::setValue() works with string value.');
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: // Test DateTimeItem::setValue() using property array.
./core/modules/datetime/tests/src/Kernel/DateTimeItemTest.php: $this->assertEquals($value, $entity->field_datetime[0]->value, 'DateTimeItem::setValue() works with array value.');
./core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php: if ($parent_field_item_class === DateTimeItem::class) {
./core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php: if ($parent_field_item_class === DateTimeItem::class) {
./core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php: DateTimeItem::class,
./core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php: DateTimeItem::class,

Bhanu951’s picture

Assigned: Unassigned » Bhanu951
Status: Reviewed & tested by the community » Needs work
Bhanu951’s picture

Assigned: Bhanu951 » Unassigned
Status: Needs work » Needs review

Please ignore Merge request !2321 ,

Updated Merge request !3013 to replace existing few more instances of "DateTimeItem::"

smustgrave’s picture

Status: Needs review » Needs work

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.