public function getRulesWithSourceSpecification()
    {
        $rulesWithSource = [];

        foreach ($this->attributeRules as $name => $rules) {
            $rulesWithSource[$name] = array_filter(
                $rules,
                function ($rule) {
                    return isset($rule['source']);
                }
            );
        }

        return array_filter($rulesWithSource);
    }
public function getRulesWithSourceSpecification()
    {
        $rulesWithSource = [];

        foreach ($this->attributeRules as $name => $rules) {
            $rulesWithSource[$name] = array_filter(
                $rules,
                function ($rule) {
                    return isset($rule['source']);
                }
            );
        }

        return array_filter($rulesWithSource);
    }
public function getRulesWithSourceSpecification ( ) { $ rulesWithSource = [ ] ; foreach ( $ this -> attributeRules as $ name => $ rules ) { $ rulesWithSource [ $ name ] = array_filter ( $ rules , function ( $ rule ) { return isset ( $ rule [ 'source' ] ) ; } ) ; } return array_filter ( $ rulesWithSource ) ; }
Return all attribute rules eligible for attribute aggregation.

A rule is eligible for attribute aggregation if it contains a source.

@return array
Return all attribute rules eligible for attribute aggregation .