src/AssetConfig.php
public function targetFilters($name)
    {
        $ext = $this->getExt($name);
        $filters = [];
        if (isset($this->_data[$ext][self::FILTERS])) {
            $filters = $this->_data[$ext][self::FILTERS];
        }
        if (!empty($this->_targets[$name][self::FILTERS])) {
            $buildFilters = $this->_targets[$name][self::FILTERS];
            $filters = array_merge($filters, $buildFilters);
        }
        return array_unique($filters);
    }
public function targetFilters($name)
    {
        $ext = $this->getExt($name);
        $filters = [];
        if (isset($this->_data[$ext][self::FILTERS])) {
            $filters = $this->_data[$ext][self::FILTERS];
        }
        if (!empty($this->_targets[$name][self::FILTERS])) {
            $buildFilters = $this->_targets[$name][self::FILTERS];
            $filters = array_merge($filters, $buildFilters);
        }
        return array_unique($filters);
    }
public function targetFilters ( $ name ) { $ ext = $ this -> getExt ( $ name ) ; $ filters = [ ] ; if ( isset ( $ this -> _data [ $ ext ] [ self :: FILTERS ] ) ) { $ filters = $ this -> _data [ $ ext ] [ self :: FILTERS ] ; } if ( ! empty ( $ this -> _targets [ $ name ] [ self :: FILTERS ] ) ) { $ buildFilters = $ this -> _targets [ $ name ] [ self :: FILTERS ] ; $ filters = array_merge ( $ filters , $ buildFilters ) ; } return array_unique ( $ filters ) ; }
Get the filters for a build target.

@param string $name The build target to get filters for.
@return array
Get the filters for a build target .