This was needed earlier as value of `$type` was like `create.success` but now it would be just `success`. So I don't think this is needed any more. Above two lines can just be replaced with `$config['params']['class'] .= ' ' . $type;`