You are here

public function ComputedFieldHelpers::getComputeFunctionName in Computed Field 3.x

Fetches this field's compute function name for implementing elsewhere.

Parameters

string $field_name: Current field name.

Return value

string The function name.

2 calls to ComputedFieldHelpers::getComputeFunctionName()
ComputedFieldHelpers::computeFunctionNameExists in src/ComputedFieldHelpers.php
Determines if a compute function exists for this field.
ComputedFieldHelpers::executeCode in src/ComputedFieldHelpers.php
Fetches this field's compute function name for implementing elsewhere.

File

src/ComputedFieldHelpers.php, line 81

Class

ComputedFieldHelpers
Class ComputedFieldHelpers.

Namespace

Drupal\computed_field

Code

public function getComputeFunctionName($field_name) {
  return 'computed_field_' . $field_name . '_compute';
}