function FieldConfigBase::getDefaultValueCallback
Returns the default value callback for the field.
This method retrieves the raw property assigned to the field definition. When computing the runtime default value for a field in a given entity, ::getDefaultValue() should be used instead.
Return value
string|null The default value callback for the field.
Overrides FieldDefinitionInterface::getDefaultValueCallback
1 call to FieldConfigBase::getDefaultValueCallback()
- FieldConfigBase::getDefaultValue in core/lib/ Drupal/ Core/ Field/ FieldConfigBase.php 
- Returns the default value for the field in a newly created entity.
File
- 
              core/lib/ Drupal/ Core/ Field/ FieldConfigBase.php, line 429 
Class
- FieldConfigBase
- Base class for configurable field definitions.
Namespace
Drupal\Core\FieldCode
public function getDefaultValueCallback() {
  return $this->default_value_callback;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
