class AttributeKeyView extends View (View source)

Properties

protected $context from View
protected $scopeItems from View
protected $label from FormView
protected $supportsLabel from FormView
protected $isRequired from FormView

Methods

__construct(ContextInterface $context, Control $control)

AttributeKeyView constructor.

addScopeItem($key, $value)

No description

from View
getScopeItems()

No description

from View
getView()

No description

from View
getContext()

No description

from View
getControlRenderer()

No description

from View
bool
isRequired()

No description

from FormView
setIsRequired(boolean $isRequired)

No description

from FormView
setLabel($label)

No description

from FormView
string
getLabel()

Returns the label for the current form control.

from FormView
setSupportsLabel($supportsLabel)

No description

from FormView
bool
supportsLabel()

Returns true if the current form control supports labeling.

from FormView
string|null
getControlID()

Returns the ID of the current form control – may return null if the form control doesn't need it.

Details

__construct(ContextInterface $context, Control $control)

AttributeKeyView constructor.

Parameters

ContextInterface $context
Control $control

addScopeItem($key, $value)

Parameters

$key
$value

getScopeItems()

getView()

ContextInterface getContext()

Return Value

ContextInterface

RendererInterface getControlRenderer()

Return Value

RendererInterface

bool isRequired()

Return Value

bool

setIsRequired(boolean $isRequired)

Parameters

boolean $isRequired

setLabel($label)

Parameters

$label

string getLabel()

Returns the label for the current form control.

Return Value

string

setSupportsLabel($supportsLabel)

Parameters

$supportsLabel

bool supportsLabel()

Returns true if the current form control supports labeling.

Return Value

bool

string|null getControlID()

Returns the ID of the current form control – may return null if the form control doesn't need it.

Return Value

string|null

TemplateLocator createTemplateLocator()

Return Value

TemplateLocator