src/Controller/Ajax3X.php
protected function getTreeValue($type, $value)
    {
        // Convert the selected values.
        if ('' !== $value) {
            $value = StringUtil::trimsplit("\t", $value);

            // Automatically add resources to the DBAFS.
            if ('file' === $type) {
                foreach ($value as $k => $v) {
                    $value[$k] = StringUtil::binToUuid(Dbafs::addResource(\urldecode($v))->uuid);
                }
            }
        }

        return $value;
    }
protected function getTreeValue($type, $value)
    {
        // Convert the selected values.
        if ('' !== $value) {
            $value = StringUtil::trimsplit("\t", $value);

            // Automatically add resources to the DBAFS.
            if ('file' === $type) {
                foreach ($value as $k => $v) {
                    $value[$k] = StringUtil::binToUuid(Dbafs::addResource(\urldecode($v))->uuid);
                }
            }
        }

        return $value;
    }
protected function getTreeValue ( $ type , $ value ) { // Convert the selected values. if ( '' !== $ value ) { $ value = StringUtil :: trimsplit ( "\t" , $ value ) ; // Automatically add resources to the DBAFS. if ( 'file' === $ type ) { foreach ( $ value as $ k => $ v ) { $ value [ $ k ] = StringUtil :: binToUuid ( Dbafs :: addResource ( \ urldecode ( $ v ) ) -> uuid ) ; } } } return $ value ; }
Retrieve the value as serialized array.

If the type is "file", the file names will automatically be added to the Dbafs and converted to file id.

@param string $type  Either "page" or "file".
@param string $value The value as comma separated list.

@return string The value array.
Retrieve the value as serialized array .