public function addScopeFilter($scope, $scopeCode, $section)
    {
        $this->addFieldToFilter('scope', $scope);
        $this->addFieldToFilter('scope_code', trim($scopeCode));
        $this->addFieldToFilter('path', ['like' => $section . '/%']);

        return $this;
    }
public function addScopeFilter($scope, $scopeCode, $section)
    {
        $this->addFieldToFilter('scope', $scope);
        $this->addFieldToFilter('scope_code', trim($scopeCode));
        $this->addFieldToFilter('path', ['like' => $section . '/%']);

        return $this;
    }
public function addScopeFilter ( $ scope , $ scopeCode , $ section ) { $ this -> addFieldToFilter ( 'scope' , $ scope ) ; $ this -> addFieldToFilter ( 'scope_code' , trim ( $ scopeCode ) ) ; $ this -> addFieldToFilter ( 'path' , [ 'like' => $ section . '/%' ] ) ; return $ this ; }
Add scope filter to collection

@param string $scope     The scope
@param string $scopeCode The scope code
@param string $section   The section

@return Collection
Add scope filter to collection