Core Theme Components

PageContext extends BaseContext

Provides a context object for Wordpress pages.

Tags
version
1.0.0

Table of Contents

$data  : array<string|int, mixed>
$request  : Request
__construct()  : mixed
Pass optional keyword args.
__toString()  : string
count()  : int
getRequest()  : Request
Returns a Request object.
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : void
offsetUnset()  : void
set()  : void
toArray()  : array<string|int, mixed>
Returns the context dictionary.
getPageTitle()  : string

Properties

Methods

__construct()

Pass optional keyword args.

public __construct(Request $request[, array<string|int, mixed> $kwargs = [] ]) : mixed
Parameters
$request : Request
$kwargs : array<string|int, mixed> = []
Return values
mixed

__toString()

public __toString() : string
Return values
string

getRequest()

Returns a Request object.

public getRequest() : Request
Return values
Request

offsetExists()

public offsetExists(mixed $offset) : bool
Parameters
$offset : mixed
Return values
bool

offsetGet()

public offsetGet(mixed $offset) : mixed
Parameters
$offset : mixed
Return values
mixed

offsetSet()

public offsetSet(mixed $offset, mixed $value) : void
Parameters
$offset : mixed
$value : mixed
Return values
void

offsetUnset()

public offsetUnset(mixed $offset) : void
Parameters
$offset : mixed
Return values
void

set()

public set(mixed $key[, mixed $value = '' ]) : void
Parameters
$key : mixed
$value : mixed = ''
Return values
void

toArray()

Returns the context dictionary.

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

getPageTitle()

private getPageTitle() : string
Return values
string

Search results