// Create the filter array $filter = array( 'value' => 'default', 'text' => 'Default Filter' ); // Add the filter to the sidebar JHtmlSidebar::addFilter($filter);This code creates a filter with the default value and text "Default Filter" and adds it to the sidebar. Package library: Joomla CMS.