luyadev/luya-module-admin

View on GitHub
src/filters/TinyThumbnail.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace luya\admin\filters;

use luya\admin\base\Filter;

/**
 * Admin Module default Filter: Tiny Thumbnail (40xnull)
 *
 * @author Basil Suter <basil@nadar.io>
 * @since 1.0.0
 */
class TinyThumbnail extends Filter
{
    public static function identifier()
    {
        return 'tiny-thumbnail';
    }

    public function name()
    {
        return 'Thumbnail tiny (40xnull)';
    }

    public function chain()
    {
        return [
            [self::EFFECT_THUMBNAIL, [
                'width' => 40,
                'height' => null,
            ]],
        ];
    }
}