getEventData(); if ($data["type"] === HOOK_EVENT_TYPE_PRE) { $data["actions"][] = OnlyofficeTools::getButtonEdit($data); return $data; } } }