M1\Vars\Resource\FileResource::import2Resource PHP Method

import2Resource() private method

Creates the resource from the import then imports it
private import2Resource ( array | string $import, array $imported_resources ) : array
$import array | string The string|array to be converted to a resource
$imported_resources array The array of imported resources
return array The imported resources
    private function import2Resource($import, array $imported_resources)
    {
        $resource = $this->createResource($import);
        if ($resource) {
            $imported_resources = $this->importResource($resource, $imported_resources);
        }
        return $imported_resources;
    }