class GranularityService in Duration Field 8.2
Same name in this branch
- 8.2 src/Service/GranularityService.php \Drupal\duration_field\Service\GranularityService
- 8.2 tests/src/Unit/Service/GranularityService.php \Drupal\Tests\duration_field\Unit\Service\GranularityService
Same name and namespace in other branches
- 3.0.x tests/src/Unit/Service/GranularityService.php \Drupal\Tests\duration_field\Unit\Service\GranularityService
Overrides GranularityService, used for UnitTests.
Hierarchy
- class \Drupal\duration_field\Service\GranularityService implements GranularityServiceInterface
- class \Drupal\Tests\duration_field\Unit\Service\GranularityService
Expanded class hierarchy of GranularityService
File
- tests/
src/ Unit/ Service/ GranularityService.php, line 10
Namespace
Drupal\Tests\duration_field\Unit\ServiceView source
class GranularityService extends GranularityServiceBase {
/**
* {@inheritdoc}
*/
protected function getDrupalStatic($key) {
return [];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GranularityService:: |
public | function |
Converts a granularity array to a granularity string. Overrides GranularityServiceInterface:: |
|
GranularityService:: |
public | function |
Converts a granularity string to a granularity array. Overrides GranularityServiceInterface:: |
|
GranularityService:: |
protected | function |
Returns drupal_static(). Overrides GranularityService:: |
|
GranularityService:: |
public | function |
Test if the given granularity element should be included. Overrides GranularityServiceInterface:: |