PHP Class Sulu\Bundle\ContentBundle\Preview\PageRouteDefaultsProvider

Will be used to find the controller for this document types.
Inheritance: implements Sulu\Bundle\RouteBundle\Routing\Defaults\RouteDefaultsProviderInterface
ファイルを表示 Open project: sulu/sulu

Public Methods

Method Description
__construct ( Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface $structureMetadataFactory, Sulu\Component\DocumentManager\DocumentInspector $inspector, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager )
getByEntity ( $entityClass, $id, $locale, $object = null )
isPublished ( $entityClass, $id, $locale )
supports ( $entityClass )

Protected Methods

Method Description
documentToStructure ( BasePageDocument $document ) : PageBridge Return a structure bridge corresponding to the given document.

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface $structureMetadataFactory, Sulu\Component\DocumentManager\DocumentInspector $inspector, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager )
$structureMetadataFactory Sulu\Component\Content\Metadata\Factory\StructureMetadataFactoryInterface
$inspector Sulu\Component\DocumentManager\DocumentInspector
$structureManager Sulu\Component\Content\Compat\StructureManagerInterface

documentToStructure() protected method

Return a structure bridge corresponding to the given document.
protected documentToStructure ( BasePageDocument $document ) : PageBridge
$document Sulu\Bundle\ContentBundle\Document\BasePageDocument
return Sulu\Component\Content\Compat\Structure\PageBridge

getByEntity() public method

This function wont work for website mode. To enable this the object would have to loaded in case the argument $object is null.
public getByEntity ( $entityClass, $id, $locale, $object = null )

isPublished() public method

public isPublished ( $entityClass, $id, $locale )

supports() public method

public supports ( $entityClass )