MetaFox

FeedEmbed extends JsonResource
in package
Uses PhotoHasExtra, ShareFeedInfoTrait

Class PhotoEmbed.

Table of Contents

Properties

$resource  : Photo

Methods

toArray()  : array<string|int, mixed>
Transform the resource collection into an array.
toFeedContent()  : string|null
toLocation()  : array<string|int, mixed>|null
getCustomExtra()  : array<string, bool>
getFeedTransformContent()  : string|null
parseFeedHashtags()  : string
getSharedFeedInfos()  : array<string|int, mixed>

Properties

Methods

toArray()

Transform the resource collection into an array.

public toArray(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

throws
AuthenticationException|AuthorizationException
Return values
array<string|int, mixed>

getCustomExtra()

protected getCustomExtra() : array<string, bool>
Tags
throws
AuthenticationException
Return values
array<string, bool>

getSharedFeedInfos()

private getSharedFeedInfos(User $context) : array<string|int, mixed>
Parameters
$context : User
Return values
array<string|int, mixed>

        
On this page

Search results