Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class FileHelper extends Helper |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * {@inheritDoc} |
||
11 | */ |
||
12 | public $helpers = [ |
||
13 | 'Html', |
||
14 | ]; |
||
15 | |||
16 | /** |
||
17 | * Thumb image. |
||
18 | * |
||
19 | * @param string|array $path Path to the image file, relative to the app/webroot/img/ direct. |
||
20 | * @param array $options Array of HTML attributes. See above for special options. |
||
21 | * @param string $thumb Name of thumb. |
||
22 | * @return string completed img tag. |
||
23 | * @see https://book.cakephp.org/3.0/en/views/helpers/html.html#linking-to-images |
||
24 | */ |
||
25 | public function thumb($path, array $options = [], string $thumb = 'default'): string |
||
38 |