Neomerx\JsonApi\Encoder\Parameters\ParametersAnalyzer::getIncludePathsByType PHP Метод

getIncludePathsByType() приватный Метод

private getIncludePathsByType ( string $type ) : string[]
$type string
Результат string[]
    private function getIncludePathsByType($type)
    {
        // if include paths are set in params use them otherwise use default include paths from schema
        $includePaths = $this->parameters->getIncludePaths();
        if (empty($includePaths) === false) {
            $typePaths = $includePaths;
        } else {
            $schema = $this->container->getSchemaByResourceType($type);
            $typePaths = $schema->getIncludePaths();
        }
        return $typePaths;
    }