FieldDefaultValueCallbackProvider.php
Same filename in other branches
Namespace
Drupal\field_testFile
-
core/
modules/ field/ tests/ modules/ field_test/ src/ FieldDefaultValueCallbackProvider.php
View source
<?php
namespace Drupal\field_test;
/**
* Helper class for \Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest.
*/
class FieldDefaultValueCallbackProvider {
/**
* Helper callback calculating a default value.
*/
public static function calculateDefaultValue() {
return [
[
'value' => 'Calculated default value',
],
];
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
FieldDefaultValueCallbackProvider | Helper class for \Drupal\Tests\field\Functional\FieldDefaultValueCallbackTest. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.