public function ComputedFieldHelpers::computeFunctionNameExists in Computed Field 3.x
Determines if a compute function exists for this field.
Parameters
string $field_name: Current field name.
Return value
bool TRUE if the function exists, FALSE if not.
1 call to ComputedFieldHelpers::computeFunctionNameExists()
- ComputedFieldHelpers::executeCode in src/
ComputedFieldHelpers.php - Fetches this field's compute function name for implementing elsewhere.
File
- src/
ComputedFieldHelpers.php, line 94
Class
- ComputedFieldHelpers
- Class ComputedFieldHelpers.
Namespace
Drupal\computed_fieldCode
public function computeFunctionNameExists($field_name) {
return function_exists($this
->getComputeFunctionName($field_name));
}