protected function Calendar::visibleOnLegendState in Calendar 8
Get form options for hiding elements based on legend type.
Parameters
mixed $mode: Mode to set the visibility by.
Return value
array Returns form options in array.
1 call to Calendar::visibleOnLegendState()
- Calendar::buildOptionsForm in src/
Plugin/ views/ row/ Calendar.php - Provide a form for setting options.
File
- src/
Plugin/ views/ row/ Calendar.php, line 715
Class
- Calendar
- Plugin which creates a view on the resulting object and formats it as a Calendar entity.
Namespace
Drupal\calendar\Plugin\views\rowCode
protected function visibleOnLegendState($mode) {
return [
'#states' => [
'visible' => [
':input[name="row_options[colors][legend]"]' => [
'value' => $mode,
],
],
],
];
}