PHP 인터페이스 Sulu\Bundle\RouteBundle\Routing\Defaults\RouteDefaultsProviderInterface

파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

getByEntity() 공개 메소드

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)
리턴 array

isPublished() 공개 메소드

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

supports() 공개 메소드

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