Change format condition from name to ID
Summary
In the current implementation, the module checks which display format is selected by checking the name of the format. This approach is not safe. Change it so that it will check by format ID.
Possible fixes
Change
if ($view->display_handler->view->style_plugin->pluginTitle()->__toString() == "Horizontal Boxes")
to
if ($view->display_handler->view->style_plugin->getPluginId() == "horizontal_boxes")
Edited by Konstantinos Platis