PagePosition

Implements \ContentPositionInterface

Class PagePosition

This class represents the position of a page

category

System

package

Content

Methods

PagePosition constructor

__construct(string $position) 

Arguments

$position

string

Page position

Create instance for info position

createForInfo() : \PagePosition
static

Response

\PagePosition

Create instance for info box position

createForInfoBox() : \PagePosition
static

Response

\PagePosition

Create instance for main navigation position

createForMainNavigation() : \PagePosition
static

Response

\PagePosition

Create instance for secondary navigation position

createForSecondaryNavigation() : \PagePosition
static

Response

\PagePosition

Create instance from a position string

createFromString(string $position) : \PagePosition
static

Arguments

$position

string

Position as string

Response

\PagePosition

Return the position

position() : string

Response

string

Constants

Main navigation position

MAIN_NAVIGATION

Secondary navigation position

SECONDARY_NAVIGATION

Info position

INFO

Info box position

INFO_BOX

Properties

Page position

position : string
var

Type(s)

string