You are here

public static function FieldDefaultValueCallbackProvider::calculateDefaultValue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Tests/FieldDefaultValueCallbackProvider.php \Drupal\field\Tests\FieldDefaultValueCallbackProvider::calculateDefaultValue()

Helper callback calculating a default value.

File

core/modules/field/src/Tests/FieldDefaultValueCallbackProvider.php, line 18
Contains \Drupal\field\Tests\FieldDefaultValueCallbackProvider.

Class

FieldDefaultValueCallbackProvider
Helper class for \Drupal\field\Tests\FieldDefaultValueCallbackTest.

Namespace

Drupal\field\Tests

Code

public static function calculateDefaultValue() {
  return [
    [
      'value' => 'Calculated default value',
    ],
  ];
}