Copied!

LocalProductTypeServiceDecorator

LocalProductTypeServiceDecorator.php : 20

Properties

protected $innerService

LocalProductTypeServiceDecorator.php : 22
protected LocalProductTypeServiceInterface $innerService

Methods

public__construct()

LocalProductTypeServiceDecorator.php : 24
public __construct(LocalProductTypeServiceInterface $innerService)

Parameters

Name Type Default value Description
$innerService LocalProductTypeServiceInterface - -

publicaddContentTypeFieldDefinition()

LocalProductTypeServiceDecorator.php : 78
public addContentTypeFieldDefinition(ProductTypeInterface $productType, FieldDefinitionCreateStruct $fieldDefinitionCreateStruct) : void

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -
$fieldDefinitionCreateStruct FieldDefinitionCreateStruct - -

publiccreateProductType()

LocalProductTypeServiceDecorator.php : 29
public createProductType(ProductTypeCreateStruct $createStruct) : ProductTypeInterface

Parameters

Name Type Default value Description
$createStruct ProductTypeCreateStruct - -

Return values

ProductTypeInterface

publicdeleteProductType()

LocalProductTypeServiceDecorator.php : 49
public deleteProductType(ProductTypeInterface $productType) : void

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -

publicdeleteProductTypeTranslation()

LocalProductTypeServiceDecorator.php : 54
public deleteProductTypeTranslation(ProductTypeInterface $productType, string $languageCode) : void

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -
$languageCode string - -

publicfindProductTypes()

LocalProductTypeServiceDecorator.php : 71
public findProductTypes([ProductTypeQuery|null $query = null ][, LanguageSettings|null $languageSettings = null ]) : ProductTypeListInterface

Parameters

Name Type Default value Description
$query ProductTypeQuery|null null -
$languageSettings LanguageSettings|null null -

Return values

ProductTypeListInterface

publicgetProductType()

LocalProductTypeServiceDecorator.php : 64
public getProductType(string $identifier[, LanguageSettings|null $languageSettings = null ]) : ProductTypeInterface

Parameters

Name Type Default value Description
$identifier string - -
$languageSettings LanguageSettings|null null -

Return values

ProductTypeInterface

publicisProductTypeUsed()

LocalProductTypeServiceDecorator.php : 59
public isProductTypeUsed(ProductTypeInterface $productType) : bool

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -

Return values

bool

publicnewProductTypeCreateStruct()

LocalProductTypeServiceDecorator.php : 34
public newProductTypeCreateStruct(string $identifier, string $mainLanguageCode) : ProductTypeCreateStruct

Parameters

Name Type Default value Description
$identifier string - -
$mainLanguageCode string - -

Return values

ProductTypeCreateStruct

publicnewProductTypeUpdateStruct()

LocalProductTypeServiceDecorator.php : 39
public newProductTypeUpdateStruct(ProductTypeInterface $productType) : ProductTypeUpdateStruct

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -

Return values

ProductTypeUpdateStruct

publicremoveContentTypeFieldDefinition()

LocalProductTypeServiceDecorator.php : 85
public removeContentTypeFieldDefinition(ProductTypeInterface $productType, FieldDefinition $fieldDefinition) : void

Parameters

Name Type Default value Description
$productType ProductTypeInterface - -
$fieldDefinition FieldDefinition - -

publicupdateProductType()

LocalProductTypeServiceDecorator.php : 44
public updateProductType(ProductTypeUpdateStruct $updateStruct) : ProductTypeInterface

Parameters

Name Type Default value Description
$updateStruct ProductTypeUpdateStruct - -

Return values

ProductTypeInterface