Formatting in Drupal 8
Same name and namespace in other branches
- 4 includes/common.inc \format
- 5 includes/common.inc \format
- 6 includes/common.inc \format
- 7 includes/common.inc \format
- 9 core/includes/common.inc \format
Functions to format numbers, strings, dates, etc.
File
- core/
includes/ common.inc, line 236 - Common functions that many Drupal modules will need to reference.
Functions
|
Name |
Location | Description |
|---|---|---|
| date_iso8601 Deprecated |
core/ |
Returns an ISO8601 formatted date based on the given date. |
| format_date Deprecated |
core/ |
Formats a date, using a date type or a custom date format string. |
| format_size |
core/ |
Generates a string representation for the given byte count. |