protected function GranularityService::getDrupalStatic in Duration Field 8.2
Same name in this branch
- 8.2 src/Service/GranularityService.php \Drupal\duration_field\Service\GranularityService::getDrupalStatic()
- 8.2 tests/src/Unit/Service/GranularityService.php \Drupal\Tests\duration_field\Unit\Service\GranularityService::getDrupalStatic()
Same name and namespace in other branches
- 3.0.x src/Service/GranularityService.php \Drupal\duration_field\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.
1 call to GranularityService::getDrupalStatic()
- GranularityService::convertGranularityStringToGranularityArray in src/
Service/ GranularityService.php - Converts a granularity string to a granularity array.
1 method overrides GranularityService::getDrupalStatic()
- GranularityService::getDrupalStatic in tests/
src/ Unit/ Service/ GranularityService.php - Returns drupal_static().
File
- src/
Service/ GranularityService.php, line 71
Class
Namespace
Drupal\duration_field\ServiceCode
protected function getDrupalStatic($key) {
$static =& drupal_static($key);
return $static;
}