SliderAssignmentRepositoryInterface

Extends

Interface SliderAssignmentRepositoryInterface

category

System

package

Slider

subpackage

Interfaces

Methods

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

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

Arguments

$entityType

\NonEmptyStringType

$entityId

\IdType

Response

\SliderAssignmentRepositoryInterface

Same instance for method chaining.

Deletes all slider assignments by the given slider ID.

deleteBySliderId(\IdType $sliderId) : \SliderAssignmentRepositoryInterface

Arguments

$sliderId

\IdType

Response

\SliderAssignmentRepositoryInterface

Same instance for method chaining.

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

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

Arguments

$entityType

\NonEmptyStringType

$entityId

\IdType

Response

integer|null

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

Inserts a slider assignment into the database.

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

Arguments

$sliderId

\IdType

$entityType

\NonEmptyStringType

$entityId

\IdType

Response

\SliderAssignmentRepositoryInterface

Same instance for method chaining.