Class

eZ\Publish\Core\Helper\ContentInfoLocationLoader\SudoMainLocationLoader

class SudoMainLocationLoader implements ContentInfoLocationLoader

Loads the main location of a given ContentInfo using sudo().

Methods

__construct(Repository $repository)

Location loadLocation(ContentInfo $contentInfo)

Loads a location from a ContentInfo.

Details

at line 24
public __construct(Repository $repository)

Parameters

Repository $repository

at line 29
public Location loadLocation(ContentInfo $contentInfo)

Loads a location from a ContentInfo.

Parameters

ContentInfo $contentInfo

Return Value

Location

Exceptions

NotFoundException if the location doesn't have a contentId.
NotFoundException if the location failed to load.