hook_date_format_types() has been removed a long time now. Here is the change record: #1876852: Date formats API changes

Comments

andypost’s picture

+++ b/core/includes/common.inc
@@ -593,8 +593,7 @@ function format_size($size, $langcode = NULL) {
+ *   - The name of a date type defined by a module in config.

+++ b/core/lib/Drupal/Core/Datetime/DateFormatter.php
@@ -103,8 +103,7 @@ public function __construct(EntityManagerInterface $entity_manager, LanguageMana
+   *   - The name of a date type defined by a module in config.

maybe... defined by the date format config entity?

herom’s picture

yes, that looks better. just made a small change: s/the/a

+ *   - The name of a date type defined by a date format config entity.
andypost’s picture

Status: Needs review » Reviewed & tested by the community

nice

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed e4750a7 and pushed to 8.0.x. Thanks!

  • alexpott committed e4750a7 on 8.0.x
    Issue #2330943 by herom: Remove mention of hook_date_format_types() in...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.