1 | <?php |
||
2 | /** |
||
3 | * AssetPond plugin for Craft CMS 3.x |
||
4 | * |
||
5 | * Instant FilePond server that works with Craft Assets. |
||
6 | * |
||
7 | * @link https://workingconcept.com |
||
8 | * @copyright Copyright (c) 2019 Working Concept |
||
9 | */ |
||
10 | |||
11 | namespace workingconcept\assetpond\variables; |
||
12 | |||
13 | use Craft; |
||
14 | |||
15 | /** |
||
16 | * @author Working Concept |
||
17 | * @package AssetPond |
||
18 | * @since 1.0.0 |
||
19 | */ |
||
20 | class AssetPondVariable |
||
21 | { |
||
22 | // Public Methods |
||
23 | // ========================================================================= |
||
24 | |||
25 | /** |
||
26 | * Returns the URL for the controller that can receive frontend uploads |
||
27 | * directly from FilePond. |
||
28 | * |
||
29 | * @param null $volumeId |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
30 | * @return string |
||
31 | */ |
||
32 | public function endpoint($volumeId = null): string |
||
33 | { |
||
34 | return '/assetpond' . ($volumeId ? ('/' . $volumeId) : ''); |
||
0 ignored issues
–
show
|
|||
35 | } |
||
36 | } |
||
37 |