protected function ViewsConditionalField::defineOptions in Views Conditional 8
Define the available options.
Return value
array Returns the available options.
Overrides FieldPluginBase::defineOptions
File
- src/
Plugin/ views/ field/ ViewsConditionalField.php, line 88
Class
- ViewsConditionalField
- Field handler to flag the node type.
Namespace
Drupal\views_conditional\Plugin\views\fieldCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['label']['default'] = NULL;
$options['if'] = [
'default' => '',
];
$options['condition'] = [
'default' => '',
];
$options['equalto'] = [
'default' => '',
];
$options['then'] = [
'default' => '',
];
$options['then_translate'] = [
'default' => TRUE,
];
$options['or'] = [
'default' => '',
];
$options['or_translate'] = [
'default' => TRUE,
];
$options['strip_tags'] = [
'default' => FALSE,
];
return $options;
}