protected function _create($class, $alias, $settings)
    {
        $instance = new $class($this->_View, $settings);

        $enable = isset($settings['enabled']) ? $settings['enabled'] : true;
        if ($enable) {
            $this->getEventManager()->on($instance);
        }

        return $instance;
    }
protected function _create($class, $alias, $settings)
    {
        $instance = new $class($this->_View, $settings);

        $enable = isset($settings['enabled']) ? $settings['enabled'] : true;
        if ($enable) {
            $this->getEventManager()->on($instance);
        }

        return $instance;
    }
protected function _create ( $ class , $ alias , $ settings ) { $ instance = new $ class ( $ this -> _View , $ settings ) ; $ enable = isset ( $ settings [ 'enabled' ] ) ? $ settings [ 'enabled' ] : true ; if ( $ enable ) { $ this -> getEventManager ( ) -> on ( $ instance ) ; } return $ instance ; }
Create the helper instance.

Part of the template method for Cake\Core\ObjectRegistry::load()
Enabled helpers will be registered with the event manager.

@param string $class The class to create.
@param string $alias The alias of the loaded helper.
@param array $settings An array of settings to use for the helper.
@return \Cake\View\Helper The constructed helper class.
Create the helper instance .