public property FieldInstance::$default_value_function

The name of a callback function that returns default values.

The function will be called with the following arguments:

It should return an array of default values, in the same format as the $default_value property.

This property takes precedence on the list of fixed values specified in the $default_value property.

Type: string

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php, line 172
Contains \Drupal\field\Plugin\Core\Entity\FieldInstance.

Class

FieldInstance
Defines the Field instance entity.

Namespace

Drupal\field\Plugin\Core\Entity

Code

public $default_value_function = '';