protected function ComputedFieldItemTrait::getComputeFunctionName in Computed Field 8.2
Fetches this field's compute function name for implementing elsewhere.
Return value
string The function name.
3 calls to ComputedFieldItemTrait::getComputeFunctionName()
- ComputedFieldItemTrait::computeFunctionNameExists in src/
Plugin/ Field/ FieldType/ ComputedFieldItemTrait.php - Determines if a compute function exists for this field.
- ComputedFieldItemTrait::executeCode in src/
Plugin/ Field/ FieldType/ ComputedFieldItemTrait.php - Performs the field value computation.
- ComputedFieldItemTrait::fieldSettingsForm in src/
Plugin/ Field/ FieldType/ ComputedFieldItemTrait.php
File
- src/
Plugin/ Field/ FieldType/ ComputedFieldItemTrait.php, line 102
Class
- ComputedFieldItemTrait
- Common methods for Computed Field FieldType plugins.
Namespace
Drupal\computed_field\Plugin\Field\FieldTypeCode
protected function getComputeFunctionName() {
$field_name = $this->definition
->getFieldDefinition()
->getName();
return 'computed_field_' . $field_name . '_compute';
}