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
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Protected Properties

Свойство Type Description
$aliasServiceIdMap array

Méthodes publiques

Méthode 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 méthode

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

get() public méthode

public get ( $alias )

getAll() public méthode

public getAll ( )

has() public méthode

public has ( $alias )

mapAliasToServiceId() public méthode

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_oe property

protected array $aliasServiceIdMap
Résultat array