Function Module_calendar->get_filter
Definitions
site/pages/modules/calendar.php
- Gets the event filter, if there is one.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $only_event_types | boolean | No | No | False | N/A | N/A | Whether to only show event types |
Returns
- The filter
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Gets the event filter, if there is one.
*
* @param boolean $only_event_types Whether to only show event types
* @return array The filter
*/
public function get_filter(bool $only_event_types = false) : array
* Gets the event filter, if there is one.
*
* @param boolean $only_event_types Whether to only show event types
* @return array The filter
*/
public function get_filter(bool $only_event_types = false) : array

