src/TransformerAbstract.php
public function processIncludedResources(Scope $scope, $data)
    {
        $includedData = [];

        $includes = $this->figureOutWhichIncludes($scope);

        foreach ($includes as $include) {
            $includedData = $this->includeResourceIfAvailable(
                $scope,
                $data,
                $includedData,
                $include
            );
        }

        return $includedData === [] ? false : $includedData;
    }
public function processIncludedResources(Scope $scope, $data)
    {
        $includedData = [];

        $includes = $this->figureOutWhichIncludes($scope);

        foreach ($includes as $include) {
            $includedData = $this->includeResourceIfAvailable(
                $scope,
                $data,
                $includedData,
                $include
            );
        }

        return $includedData === [] ? false : $includedData;
    }
public function processIncludedResources ( Scope $ scope , $ data ) { $ includedData = [ ] ; $ includes = $ this -> figureOutWhichIncludes ( $ scope ) ; foreach ( $ includes as $ include ) { $ includedData = $ this -> includeResourceIfAvailable ( $ scope , $ data , $ includedData , $ include ) ; } return $ includedData === [ ] ? false : $ includedData ; }
This method is fired to loop through available includes, see if any of
them are requested and permitted for this scope.

@internal

@param Scope $scope
@param mixed $data

@return array
This method is fired to loop through available includes see if any of them are requested and permitted for this scope .