src/Reports/SiteSummary.php
protected function getDropdownFilter()
    {
        /** @var GridFieldDropdownFilter $dropdownFilter */
        $dropdownFilter = Injector::inst()->create(
            GridFieldDropdownFilter::class,
            'addonFilter',
            'buttons-before-right',
            _t(__CLASS__ . '.ShowAllModules', 'Show all modules')
        );

        $dropdownFilter->addFilterOption(
            'supported',
            _t(__CLASS__ . '.FilterSupported', 'Supported modules'),
            ['Supported' => true]
        );
        $dropdownFilter->addFilterOption(
            'unsupported',
            _t(__CLASS__ . '.FilterUnsupported', 'Unsupported modules'),
            ['Supported' => false]
        );

        $this->extend('updateDropdownFilterOptions', $dropdownFilter);

        return $dropdownFilter;
    }
protected function getDropdownFilter()
    {
        /** @var GridFieldDropdownFilter $dropdownFilter */
        $dropdownFilter = Injector::inst()->create(
            GridFieldDropdownFilter::class,
            'addonFilter',
            'buttons-before-right',
            _t(__CLASS__ . '.ShowAllModules', 'Show all modules')
        );

        $dropdownFilter->addFilterOption(
            'supported',
            _t(__CLASS__ . '.FilterSupported', 'Supported modules'),
            ['Supported' => true]
        );
        $dropdownFilter->addFilterOption(
            'unsupported',
            _t(__CLASS__ . '.FilterUnsupported', 'Unsupported modules'),
            ['Supported' => false]
        );

        $this->extend('updateDropdownFilterOptions', $dropdownFilter);

        return $dropdownFilter;
    }
protected function getDropdownFilter ( ) { /** @var GridFieldDropdownFilter $dropdownFilter */ $ dropdownFilter = Injector :: inst ( ) -> create ( GridFieldDropdownFilter :: class , 'addonFilter' , 'buttons-before-right' , _t ( __CLASS__ . '.ShowAllModules' , 'Show all modules' ) ) ; $ dropdownFilter -> addFilterOption ( 'supported' , _t ( __CLASS__ . '.FilterSupported' , 'Supported modules' ) , [ 'Supported' => true ] ) ; $ dropdownFilter -> addFilterOption ( 'unsupported' , _t ( __CLASS__ . '.FilterUnsupported' , 'Unsupported modules' ) , [ 'Supported' => false ] ) ; $ this -> extend ( 'updateDropdownFilterOptions' , $ dropdownFilter ) ; return $ dropdownFilter ; }
Returns a dropdown filter with user configurable options in it

@return GridFieldDropdownFilter
Returns a dropdown filter with user configurable options in it