doc .= $editButton->toHtmlComment(); } catch (ExceptionBadArgument $e) { LogUtility::error("Error while rendering the edit button ($editButton). Error: {$e->getMessage()}", self::CANONICAL); return false; } catch (ExceptionNotEnabled $e) { // ok return false; } return true; } }