protected function CumulativeField::getFieldType in Views Cumulative Field 8
Determine the field type we are dealing with.
Parameters
$field:
Return value
string
1 call to CumulativeField::getFieldType()
- CumulativeField::getValue in src/
Plugin/ views/ field/ CumulativeField.php - Gets the value that's supposed to be rendered.
File
- src/
Plugin/ views/ field/ CumulativeField.php, line 85 - Defines Drupal\views_cumulative_field\Plugin\views\field\CumulativeField.
Class
- CumulativeField
- Field handler to flag the node type.
Namespace
Drupal\views_cumulative_field\Plugin\views\fieldCode
protected function getFieldType($field) {
$field_handler = $this->displayHandler
->getHandler('field', $field)->options;
if (!empty($field_handler['type'])) {
$field_type = $field_handler['type'];
}
else {
$field_type = 'undefined';
}
return $field_type;
}