Lang

View helper for getting a BCP 47-compliant value for the lang attribute.
extends Zend\View\Helper\AbstractHelper
Methods Summary
public
# __construct( Zend\I18n\Translator\TranslatorInterface $translator )
Construct the helper.
public
# __invoke( null|string $lang = NULL )
Get a lang value. Accepts a string or gets the locale from the translator.
Methods inherited from Zend\View\Helper\AbstractHelper
setView(), getView()
Properties Summary
protected Zend\I18n\Translator\TranslatorInterface $translator
# NULL
Properties inherited from Zend\View\Helper\AbstractHelper
$view