protected function initFilters()
    {
        // If override status is set in field options to true
        // we will change filtersOverride property value to true
        // so we can override existing filters with registered
        // alias/name in addFilter method.
        $overrideStatus = $this->getOption('filters_override', false);
        if ($overrideStatus) {
            $this->setFiltersOverride(true);
        }

        // Get filters and bind it to field.
        $filters = $this->getOption('filters', []);
        foreach ($filters as $filter) {
            $this->addFilter($filter);
        }

        return $this;
    }
protected function initFilters()
    {
        // If override status is set in field options to true
        // we will change filtersOverride property value to true
        // so we can override existing filters with registered
        // alias/name in addFilter method.
        $overrideStatus = $this->getOption('filters_override', false);
        if ($overrideStatus) {
            $this->setFiltersOverride(true);
        }

        // Get filters and bind it to field.
        $filters = $this->getOption('filters', []);
        foreach ($filters as $filter) {
            $this->addFilter($filter);
        }

        return $this;
    }
protected function initFilters ( ) { // If override status is set in field options to true // we will change filtersOverride property value to true // so we can override existing filters with registered // alias/name in addFilter method. $ overrideStatus = $ this -> getOption ( 'filters_override' , false ) ; if ( $ overrideStatus ) { $ this -> setFiltersOverride ( true ) ; } // Get filters and bind it to field. $ filters = $ this -> getOption ( 'filters' , [ ] ) ; foreach ( $ filters as $ filter ) { $ this -> addFilter ( $ filter ) ; } return $ this ; }
Method initFilters used to initialize filters
from field options and bind it to the same.

@return $this
Method initFilters used to initialize filters from field options and bind it to the same .