protected function SimpleMathField::getRewriteStatus in Views Simple Math Field 8
Same name and namespace in other branches
- 8.2 src/Plugin/views/field/SimpleMathField.php \Drupal\views_simple_math_field\Plugin\views\field\SimpleMathField::getRewriteStatus()
Determine if the field is rewritten/altered.
Parameters
$field:
Return value
mixed
1 call to SimpleMathField::getRewriteStatus()
- 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 210 - 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 getRewriteStatus($field) {
$field_handler = $this->displayHandler
->getHandler('field', $field)->options;
if ($field_handler['alter']['alter_text'] && !empty($field_handler['alter']['text'])) {
$alter = $field_handler['alter']['text'];
}
else {
$alter = NULL;
}
return $alter;
}