PHP Class TwbBundle\View\Helper\TwbBundleLabel

Inheritance: extends Zend\Form\View\Helper\AbstractHelper
Mostra file Open project: neilime/zf2-twb-bundle

Protected Properties

Property Type Description
$tagName string
$validTagAttributes array

Public Methods

Method Description
__invoke ( string $sLabelMessage = null, string | array $aLabelAttributes = 'label-default' ) : string | TwbBundleAlert Invoke helper as functor, proxies to {@link render()}.
render ( string $sLabelMessage, string | array $aLabelAttributes = 'label-default' ) : string Retrieve label markup

Method Details

__invoke() public method

Invoke helper as functor, proxies to {@link render()}.
public __invoke ( string $sLabelMessage = null, string | array $aLabelAttributes = 'label-default' ) : string | TwbBundleAlert
$sLabelMessage string
$aLabelAttributes string | array : [optionnal] if string, label class
return string | TwbBundleAlert

render() public method

Retrieve label markup
public render ( string $sLabelMessage, string | array $aLabelAttributes = 'label-default' ) : string
$sLabelMessage string
$aLabelAttributes string | array : [optionnal] if string, label class
return string

Property Details

$tagName protected_oe property

protected string $tagName
return string

$validTagAttributes protected_oe property

protected array $validTagAttributes
return array