protected function SimpleMathField::getFieldPlugin in Views Simple Math Field 8.2
Determine the field plugin we are dealing with.
Parameters
$field:
Return value
string
1 call to SimpleMathField::getFieldPlugin()
- SimpleMathField::getFieldValue in src/
Plugin/ views/ field/ SimpleMathField.php - Get the value of a simple math field.
File
- src/
Plugin/ views/ field/ SimpleMathField.php, line 155 - Defines Drupal\views_simple_math_field\Plugin\views\field\SimpleMathField.
Class
- SimpleMathField
- Field handler to complete mathematical operation.
Namespace
Drupal\views_simple_math_field\Plugin\views\fieldCode
protected function getFieldPlugin($field) {
$field_handler = $this->displayHandler
->getHandler('field', $field)->options;
if (!empty($field_handler['plugin_id'])) {
$field_plugin = $field_handler['plugin_id'];
}
else {
$field_plugin = 'undefined';
}
return $field_plugin;
}