PHP Class Sulu\Component\Content\ContentTypeManager

Uses an alias => service ID map to fetch content types from the dependency injection container.
Inheritance: implements Sulu\Component\Content\ContentTypeManagerInterface, use trait Symfony\Component\DependencyInjection\ContainerAwareTrait
Show file Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$aliasServiceIdMap array

Public Methods

Method Description
__construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
get ( $alias )
getAll ( )
has ( $alias )
mapAliasToServiceId ( string $alias, string $serviceId ) Map a content type alias to a service ID.

Method Details

__construct() public method

public __construct ( Symfony\Component\DependencyInjection\ContainerInterface $container )
$container Symfony\Component\DependencyInjection\ContainerInterface

get() public method

public get ( $alias )

getAll() public method

public getAll ( )

has() public method

public has ( $alias )

mapAliasToServiceId() public method

Map a content type alias to a service ID.
public mapAliasToServiceId ( string $alias, string $serviceId )
$alias string - Alias for content type, e.g. media
$serviceId string - ID of corresponding service in the DI container

Property Details

$aliasServiceIdMap protected property

protected array $aliasServiceIdMap
return array