protected function GranularityService::getDrupalStatic in Duration Field 3.0.x
Same name in this branch
- 3.0.x src/Service/GranularityService.php \Drupal\duration_field\Service\GranularityService::getDrupalStatic()
- 3.0.x tests/src/Unit/Service/GranularityService.php \Drupal\Tests\duration_field\Unit\Service\GranularityService::getDrupalStatic()
Same name and namespace in other branches
- 8.2 tests/src/Unit/Service/GranularityService.php \Drupal\Tests\duration_field\Unit\Service\GranularityService::getDrupalStatic()
Returns drupal_static().
Set as a protected function so it can be overridden for unit tests.
Return value
array The drupal static array.
Overrides GranularityService::getDrupalStatic
File
- tests/
src/ Unit/ Service/ GranularityService.php, line 15
Class
- GranularityService
- Overrides GranularityService, used for UnitTests.
Namespace
Drupal\Tests\duration_field\Unit\ServiceCode
protected function getDrupalStatic($key) {
return [];
}