You are here

class FieldDefaultValueCallbackProvider 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

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

Hierarchy

Expanded class hierarchy of FieldDefaultValueCallbackProvider

File

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

Namespace

Drupal\field\Tests
View source
class FieldDefaultValueCallbackProvider {

  /**
   * Helper callback calculating a default value.
   */
  public static function calculateDefaultValue() {
    return [
      [
        'value' => 'Calculated default value',
      ],
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FieldDefaultValueCallbackProvider::calculateDefaultValue public static function Helper callback calculating a default value.