Apple News API PHP Client

HorizontalStackDisplay
in package
implements ContentDisplayInterface

FinalYes

Horizontal stack display for arranging components horizontally.

The horizontal_stack display arranges child components in a horizontal row, typically used for side-by-side layouts.

Tags
see
https://developer.apple.com/documentation/apple_news/horizontalstackdisplay

Table of Contents

Interfaces

ContentDisplayInterface
Interface for all ANF content display types.

Methods

getType()  : string
Get the content display type identifier.
jsonSerialize()  : array{type: string}
{@inheritdoc}

Methods

getType()

Get the content display type identifier.

public getType() : string
Return values
string —

The display type (e.g., 'horizontal_stack', 'collection').

jsonSerialize()

{@inheritdoc}

public jsonSerialize() : array{type: string}
Return values
array{type: string}

        
On this page

Search results