PHP Interface Sulu\Bundle\RouteBundle\Routing\Defaults\RouteDefaultsProviderInterface

Mostra file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
getByEntity ( string $entityClass, string $id, string $locale, object | null $object = null ) : array Returns route-defaults for given entity-class and id.
isPublished ( string $entityClass, string $id, string $locale ) : boolean Returns true if object is published.
supports ( string $entityClass ) : boolean Returns true if this provider supports given entity-class.

Method Details

getByEntity() public method

Returns route-defaults for given entity-class and id.
public getByEntity ( string $entityClass, string $id, string $locale, object | null $object = null ) : array
$entityClass string
$id string
$locale string
$object object | null If entity is not null it was already loaded (e.g. preview)
return array

isPublished() public method

Returns true if object is published.
public isPublished ( string $entityClass, string $id, string $locale ) : boolean
$entityClass string
$id string
$locale string
return boolean

supports() public method

Returns true if this provider supports given entity-class.
public supports ( string $entityClass ) : boolean
$entityClass string
return boolean