FluentDOM\Loadable::loadFragment PHP Method

loadFragment() public method

Load the data source and return the new DOM document. Return NULL if the data source could not be loaded.
public loadFragment ( mixed $source, string $contentType, array | Traversable | Options $options = [] ) : null | DocumentFragment
$source mixed
$contentType string
$options array | Traversable | FluentDOM\Loader\Options Optional options for the loader
return null | DocumentFragment
    function loadFragment($source, $contentType, $options = []);