Kernel::WebApp::Util::Role::ProvidesAttachments

Table of Contents

NAME

Kernel::WebApp::Util::Role::ProvidesAttachments – Role which prepares and return the attachments to be included in the article.

PrepareAttachments()

Return the attachments that should included in the article. Also, for inline attachments/images: * removes the ones that are not referenced in the article body. * replaces the src, from the 'upload' endpoint, with the cid.

    $Object->PrepareAttachments(
        Body   => \$Body, # must be reference/pointer to a string
        FormID => $FormID,
    );
Scroll to Top