src/View/Helper/HtmlHelper.php
public function initialize(array $config)
    {
        $isMaterializeCss = $this->getConfig('materializeCss', false);

        if ($isMaterializeCss === true) {
            $this->_configWrite('prepareBtnClass', function (Helper $form, $options, $button) {
                return $this->_prepareBtn($form, $options, $button);
            });

            $this->_configWrite('prepareTooltip', function (Helper $html, $options, $tooltip) {
                return $this->_prepareTooltip($html, $options, $tooltip);
            });
        }

        parent::initialize($config);
    }
public function initialize(array $config)
    {
        $isMaterializeCss = $this->getConfig('materializeCss', false);

        if ($isMaterializeCss === true) {
            $this->_configWrite('prepareBtnClass', function (Helper $form, $options, $button) {
                return $this->_prepareBtn($form, $options, $button);
            });

            $this->_configWrite('prepareTooltip', function (Helper $html, $options, $tooltip) {
                return $this->_prepareTooltip($html, $options, $tooltip);
            });
        }

        parent::initialize($config);
    }
public function initialize ( array $ config ) { $ isMaterializeCss = $ this -> getConfig ( 'materializeCss' , false ) ; if ( $ isMaterializeCss === true ) { $ this -> _configWrite ( 'prepareBtnClass' , function ( Helper $ form , $ options , $ button ) { return $ this -> _prepareBtn ( $ form , $ options , $ button ) ; } ) ; $ this -> _configWrite ( 'prepareTooltip' , function ( Helper $ html , $ options , $ tooltip ) { return $ this -> _prepareTooltip ( $ html , $ options , $ tooltip ) ; } ) ; } parent :: initialize ( $ config ) ; }
Constructor hook method. Implement this method to avoid having to overwrite the constructor and call parent.

@param   array $config The configuration settings provided to this helper.
@return  void
Constructor hook method . Implement this method to avoid having to overwrite the constructor and call parent .