FluentDOM\Loader\Lazy::load PHP Method

load() public method

public load ( string $source, mixed $contentType, array | Traversable | Options $options = [] ) : Document | Result | null
$source string
$contentType mixed
$options array | Traversable | Options
return FluentDOM\Document | Result | null
    public function load($source, $contentType, $options = [])
    {
        $contentType = $this->normalizeContentType($contentType);
        if ($loader = $this->get($contentType)) {
            return $loader->load($source, $contentType, $options);
        }
        return NULL;
    }