class ContentTypeFactory

Content type factory

Constants

CONTENT_TYPES_FILE_NAME

Default content types registry config file name

Methods

static ContentTypeInterface|null
create(string $name)

Create content type

static bool
has(string $name)

Check if content type exists

Details

at line 31
static ContentTypeInterface|null create(string $name)

Create content type

Parameters

string $name

Return Value

ContentTypeInterface|null

at line 51
static bool has(string $name)

Check if content type exists

Parameters

string $name

Return Value

bool