Reference

Guide

$file->dragText()

Provides a kirbytag or markdown tag for the file, which will be used in the panel, when the file gets dragged onto a textarea

$file->dragText(string $type = 'kirbytext', bool $absolute = false): string

Parameters

Name Type Default Description
$type string 'kirbytext'
$absolute bool false

Return type

string

Source code

kirby/src/Cms/File.php#L242