Issue #2827055: Add option to show only start or end date in the DateTime Range custom formatter
Merge request reports
Activity
- Resolved by Srishti Bankar
- Resolved by Srishti Bankar
- Resolved by Srishti Bankar
- Resolved by catch
added 42 commits
-
91dc7e2c...6950ec5b - 32 commits from branch
project:11.x
- 22e8208c - patch#93
- 6e316cf3 - Added an update path test
- 58892b19 - Update path for 'from_to'
- 7db99db7 - Added test group
- f9846356 - fix test
- 5674e1ee - Moved post update logic to presave
- 9cca3ff9 - Replaced strings with constants
- 3a2688d1 - use statement
- a0770243 - Move the constants to DateRangeItem class
- 34049afc - New class for constants
Toggle commit list-
91dc7e2c...6950ec5b - 32 commits from branch
- Resolved by Srishti Bankar
added 48 commits
-
34049afc...753bac68 - 37 commits from branch
project:11.x
- 5f3a067c - 1 earlier commit
- 03f90e4f - Added an update path test
- 49eaf9bf - Update path for 'from_to'
- 5e787b76 - Added test group
- 5319e1ec - fix test
- 670fc5f7 - Moved post update logic to presave
- f2843219 - Replaced strings with constants
- ad94eb5d - use statement
- 3f15fb11 - Move the constants to DateRangeItem class
- 8cb70b56 - New class for constants
- 782c1a2e - Fixed descriptions
Toggle commit list-
34049afc...753bac68 - 37 commits from branch
added 109 commits
-
782c1a2e...529c7932 - 98 commits from branch
project:11.x
- 333728f9 - 1 earlier commit
- ea207e7f - Added an update path test
- e24b9f79 - Update path for 'from_to'
- 4188b551 - Added test group
- 5bca9783 - fix test
- e1a956fe - Moved post update logic to presave
- 403f181e - Replaced strings with constants
- 4e1589c0 - use statement
- cefcf937 - Move the constants to DateRangeItem class
- f9a2ea60 - New class for constants
- a2e999b7 - Fixed descriptions
Toggle commit list-
782c1a2e...529c7932 - 98 commits from branch
- Resolved by Srishti Bankar
- Resolved by Srishti Bankar
- Resolved by Srishti Bankar
added 33 commits
-
a2e999b7...3d917f37 - 18 commits from branch
project:11.x
- 3d917f37...e9d08af4 - 5 earlier commits
- 5394c007 - Moved post update logic to presave
- 64db8877 - Replaced strings with constants
- 3432f725 - use statement
- c269b76f - Move the constants to DateRangeItem class
- d6a35031 - New class for constants
- 4c173699 - Fixed descriptions
- b1ddfc7e - Fix states for separator element
- 4e50319a - Updated post update hook to use config_entity_updater
- 152c571b - Added 'Choice' constraint
- 417bdfe2 - Added test for date separator visibility
Toggle commit list-
a2e999b7...3d917f37 - 18 commits from branch
14 17 'datetime_range_post_update_views_string_plugin_id' => '9.0.0', 15 18 ]; 16 19 } 20 21 /** 22 * Updates date range field formatter configuration by adding a "from_to" setting to flagged entity view displays. 23 * 24 * @see \datetime_range_entity_view_display_presave 25 */ 26 function datetime_range_post_update_from_to_configuration(array &$sandbox = NULL): void { 27 $config_entity_updater = \Drupal::classResolver(ConfigEntityUpdater::class); 28 29 $callback = function (EntityViewDisplayInterface $entity_view_display) { 30 return $entity_view_display->get('datetime_range_updated') === TRUE; This is run before
datetime_range_entity_view_display_presave
so this would actually never trigger the entity to save. The reason the test is passing is because there are other post update hooks triggeringentity_view_display
config entities to resave.This will need to be updated to check the same condition as the post update hook for determining if an update is needed, i.e.
!isset($component['settings']['from_to'])
.changed this line in version 12 of the diff
added 133 commits
-
417bdfe2...d5d6431e - 117 commits from branch
project:11.x
- d5d6431e...32a33d26 - 6 earlier commits
- 5980bf6d - Replaced strings with constants
- d0b5b413 - use statement
- 82614903 - Move the constants to DateRangeItem class
- a00b7984 - New class for constants
- 9753a67e - Fixed descriptions
- 815526c3 - Fix states for separator element
- 7929148c - Updated post update hook to use config_entity_updater
- c34e5dd6 - Added 'Choice' constraint
- c20f70b5 - Added test for date separator visibility
- d3f7f28c - added condition in post_update hook
Toggle commit list-
417bdfe2...d5d6431e - 117 commits from branch
Please register or sign in to reply