abstract class View extends FormView (View source)

Properties

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

Methods

__construct(ContextInterface $context, Control $control)

No description

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()

Whether the form control is required in the current form

from  FormView
setIsRequired(bool $isRequired)

No description

from  FormView
setLabel($label)

Sets the label for the current form control.

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

Details

__construct(ContextInterface $context, Control $control)

No description

Parameters

ContextInterface $context
Control $control

addScopeItem($key, $value)

No description

Parameters

$key
$value

getScopeItems()

No description

getView()

No description

ContextInterface getContext()

No description

Return Value

ContextInterface

RendererInterface getControlRenderer()

No description

Return Value

RendererInterface

bool isRequired()

Whether the form control is required in the current form

Return Value

bool

setIsRequired(bool $isRequired)

No description

Parameters

bool $isRequired

setLabel($label)

Sets the label for the current form control.

Parameters

$label

string getLabel()

Returns the label for the current form control.

Return Value

string

setSupportsLabel($supportsLabel)

No description

Parameters

$supportsLabel

bool supportsLabel()

Returns true if the current form control supports labeling.

Return Value

bool