protected function Xls::getOperatorFromSelectIndex in Excel Serialization 8
Returns the operator for conditional formatting from the HTML-select index.
Parameters
string $operator_select_index: The index from the HTML-select for operator.
Return value
string The operator as a string.
1 call to Xls::getOperatorFromSelectIndex()
- Xls::encode in src/
Encoder/ Xls.php - Encodes data into the given format.
File
- src/
Encoder/ Xls.php, line 481
Class
- Xls
- Adds XLS encoder support for the Serialization API.
Namespace
Drupal\xls_serialization\EncoderCode
protected function getOperatorFromSelectIndex($operator_select_index) {
$operator_options = [
0 => '=',
1 => '<>',
];
return $operator_options[$operator_select_index];
}