protected function keyToNormalizeMethod($key, $prefix)
    {
        $arrayKey = "$prefix:$key";

        if (!isset($this->_methodCache[$arrayKey])) {

            $method = $prefix . ucfirst(Type::camelCase(str_replace([' ', '.'],'_', $key)));

            $this->_methodCache[$arrayKey] = method_exists($this, $method) ? $method : false;

        }

        return $this->_methodCache[$arrayKey];

    }
protected function keyToNormalizeMethod($key, $prefix)
    {
        $arrayKey = "$prefix:$key";

        if (!isset($this->_methodCache[$arrayKey])) {

            $method = $prefix . ucfirst(Type::camelCase(str_replace([' ', '.'],'_', $key)));

            $this->_methodCache[$arrayKey] = method_exists($this, $method) ? $method : false;

        }

        return $this->_methodCache[$arrayKey];

    }
protected function keyToNormalizeMethod ( $ key , $ prefix ) { $ arrayKey = "$prefix:$key" ; if ( ! isset ( $ this -> _methodCache [ $ arrayKey ] ) ) { $ method = $ prefix . ucfirst ( Type :: camelCase ( str_replace ( [ ' ' , '.' ] , '_' , $ key ) ) ) ; $ this -> _methodCache [ $ arrayKey ] = method_exists ( $ this , $ method ) ? $ method : false ; } return $ this -> _methodCache [ $ arrayKey ] ; }
Create a method name for a hook on a key

@param string $key
@param string $prefix
@return string
Create a method name for a hook on a key