phpDocumentor

SliderAssignmentRepositoryInterface

Interface SliderAssignmentRepositoryInterface

Tags
category

System

subpackage

Interfaces

Table of Contents

deleteByEntityTypeAndEntityId()  : SliderAssignmentRepositoryInterface
Deletes a slider assignment by the given entity type and entity ID.
deleteBySliderId()  : SliderAssignmentRepositoryInterface
Deletes all slider assignments by the given slider ID.
findAssignedSliderIdForEntityTypeAndEntityId()  : int|null
Get the Slider ID for the provided entity type (category, content, product) and entity ID.
store()  : SliderAssignmentRepositoryInterface
Inserts a slider assignment into the database.

Methods

findAssignedSliderIdForEntityTypeAndEntityId()

Get the Slider ID for the provided entity type (category, content, product) and entity ID.

public findAssignedSliderIdForEntityTypeAndEntityId(NonEmptyStringType $entityType, IdType $entityId) : int|null
Parameters
$entityType : NonEmptyStringType
$entityId : IdType
Return values
int|null

Returns the ID of the slider which is assigned for the given entity id or null if no record was found.

Search results