You are here

public function HMSServiceInterface::factor_map in HMS Field 8

Returns the factor map of the format options.

Note: We cannot go further then weeks in this setup. A month implies that we know how many seconds a month is. Problem here is that a month can be 28(29), 30 or 31 days. Same goes for C (century) Y (year) Q (quarter). Only solution is that we have a value relative to a date.

Use HOOK_hms_factor_alter($factors) to do your own magic.

Parameters

boolean $return_full:

Return value

array

1 method overrides HMSServiceInterface::factor_map()
HMSService::factor_map in src/HMSService.php
Returns the factor map of the format options.

File

src/HMSServiceInterface.php, line 50
Contains \Drupal\hms_field\HMSServiceInterface.

Class

HMSServiceInterface
Interface HMSServiceInterface.

Namespace

Drupal\hms_field

Code

public function factor_map($return_full = FALSE);