PHP Interface Sulu\Component\Content\ContentTypeManagerInterface

Show file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
get ( string $contentTypeName ) : Sulu\Component\Content\ContentTypeInterface returns content type.
getAll ( ) : Sulu\Component\Content\ContentTypeInterface[] returns all content types.
has ( string $contentTypeName ) : boolean checks if contentType exists.

Method Details

get() public method

returns content type.
public get ( string $contentTypeName ) : Sulu\Component\Content\ContentTypeInterface
$contentTypeName string The name of the content to load
return Sulu\Component\Content\ContentTypeInterface

getAll() public method

returns all content types.
public getAll ( ) : Sulu\Component\Content\ContentTypeInterface[]
return Sulu\Component\Content\ContentTypeInterface[]

has() public method

checks if contentType exists.
public has ( string $contentTypeName ) : boolean
$contentTypeName string
return boolean