public function init(array $frontendData): void
    {
        $this->_frontendData = Hash::merge(
            $this->_frontendData, $frontendData
        );
        $this->_includeAppController();
        $this->_includeComponents();
    }
public function init(array $frontendData): void
    {
        $this->_frontendData = Hash::merge(
            $this->_frontendData, $frontendData
        );
        $this->_includeAppController();
        $this->_includeComponents();
    }
public function init ( array $ frontendData ) : void { $ this -> _frontendData = Hash :: merge ( $ this -> _frontendData , $ frontendData ) ; $ this -> _includeAppController ( ) ; $ this -> _includeComponents ( ) ; }
Initialize the helper. Needs to be called before running it.

@param array $frontendData Data to be passed to the frontend
@return void
Initialize the helper . Needs to be called before running it .