Interface SliderAssignmentRepositoryInterface

Interface SliderAssignmentRepositoryInterface

Direct known implementers

SliderAssignmentRepository

Methods summary

public findAssignedSliderIdForEntityTypeAndEntityId( NonEmptyStringType $entityType, IdType $entityId ) : integer|null

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

public store( IdType $sliderId, NonEmptyStringType $entityType, IdType $entityId ) : SliderAssignmentRepositoryInterface

Inserts a slider assignment into the database.

public deleteBySliderId( IdType $sliderId ) : SliderAssignmentRepositoryInterface

Deletes all slider assignments by the given slider ID.

public deleteByEntityTypeAndEntityId( NonEmptyStringType $entityType, IdType $entityId ) : SliderAssignmentRepositoryInterface

Deletes a slider assignment by the given entity type and entity ID.