get_attachment()
get_attachment(string $name) : \midcom_db_attachment
Retrieves an attachment by its name.
If multiple attachments match the name (should not happen in reality), the first match will be returned.
Parameters
string | $name | The name of the attachment to look up. |
Returns
\midcom_db_attachment —The attachment found, or false on failure.