Documentation

Category extends ResourceModel
in package
Uses HasCustomUrl

Tags

Table of Contents

$custom_url  : CustomUrl|null
$default_product_sort  : string
$description  : string
$id  : int
$image_url  : string
$is_visible  : bool
$layout_file  : string
$meta_description  : string|null
$meta_keywords  : array<string|int, mixed>
$name  : string
$page_title  : string
$parent_id  : int
$search_keywords  : string
$sort_order  : int
$views  : int
__construct()  : mixed
jsonSerialize()  : array<string|int, mixed>
setCustomUrl()  : void
Set the URL for a category, brand, or product.

Properties

$default_product_sort

public string $default_product_sort
Tags

$description

public string $description
Tags

$image_url

public string $image_url
Tags

$is_visible

public bool $is_visible
Tags

$layout_file

public string $layout_file
Tags

$meta_description

public string|null $meta_description
Tags

$meta_keywords

public array<string|int, mixed> $meta_keywords
Tags

$page_title

public string $page_title
Tags

$search_keywords

public string $search_keywords
Tags

Methods

__construct()

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

jsonSerialize()

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

setCustomUrl()

Set the URL for a category, brand, or product.

public setCustomUrl(string $url) : void

Just a shortcut to setting {url, is_customized: true}

Parameters
$url : string
Tags
Return values
void

        

Search results