Documentation

RedirectTo extends ResourceModel
in package

Tags

Table of Contents

TYPE__BRAND  = 'brand'
TYPE__CATEGORY  = 'category'
TYPE__PAGE  = 'page'
TYPE__POST  = 'post'
TYPE__PRODUCT  = 'product'
TYPE__URL  = 'url'
$entity_id  : int|null
$type  : string
$url  : string|null
__construct()  : mixed
buildRedirectTo()  : RedirectTo
jsonSerialize()  : array<string|int, mixed>

Constants

TYPE__BRAND

public mixed TYPE__BRAND = 'brand'
Tags

TYPE__CATEGORY

public mixed TYPE__CATEGORY = 'category'
Tags

TYPE__PAGE

public mixed TYPE__PAGE = 'page'
Tags

TYPE__POST

public mixed TYPE__POST = 'post'
Tags

TYPE__PRODUCT

public mixed TYPE__PRODUCT = 'product'
Tags

Properties

Methods

__construct()

public __construct([stdClass|null $optionObject = null ]) : mixed
Parameters
$optionObject : stdClass|null = null
Tags
Return values
mixed

buildRedirectTo()

public static buildRedirectTo(string $type[, int|null $entityId = null ][, string|null $url = null ]) : RedirectTo
Parameters
$type : string
$entityId : int|null = null
$url : string|null = null
Tags
Return values
RedirectTo

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>

        

Search results