Skip to content
Snippets Groups Projects

Issue #2827055: Add option to show only start or end date in the DateTime Range custom formatter

Closed Issue #2827055: Add option to show only start or end date in the DateTime Range custom formatter
Closed Srishti Bankar requested to merge issue/drupal-2827055:2827055-add-option-to into 11.x

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Lauri Timmanee
  • Srishti Bankar added 3 commits

    added 3 commits

    Compare with previous version

  • Srishti Bankar added 1 commit

    added 1 commit

    • 91dc7e2c - Move the constants to DateRangeItem class

    Compare with previous version

  • Srishti Bankar added 42 commits

    added 42 commits

    Compare with previous version

  • Srishti Bankar added 48 commits

    added 48 commits

    Compare with previous version

  • Lauri Timmanee added 109 commits

    added 109 commits

    Compare with previous version

  • Lauri Timmanee
  • Srishti Bankar added 33 commits

    added 33 commits

    Compare with previous version

  • 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;
  • Yash Rode added 133 commits

    added 133 commits

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading