You are here

protected function GranularityService::getDrupalStatic in Duration Field 8.2

Same name in this branch
  1. 8.2 src/Service/GranularityService.php \Drupal\duration_field\Service\GranularityService::getDrupalStatic()
  2. 8.2 tests/src/Unit/Service/GranularityService.php \Drupal\Tests\duration_field\Unit\Service\GranularityService::getDrupalStatic()
Same name and namespace in other branches
  1. 3.0.x 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\Service

Code

protected function getDrupalStatic($key) {
  return [];
}