luyadev/luya-module-admin

View on GitHub
src/apis/StorageImageController.php

Summary

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

namespace luya\admin\apis;

/**
 * Storage Image Controller.
 *
 * @author Basil Suter <git@nadar.io>
 * @since 3.2.0
 */
class StorageImageController extends \luya\admin\ngrest\base\Api
{
    /**
     * @var string The path to the model which is the provider for the rules and fields.
     */
    public $modelClass = 'luya\admin\models\StorageImage';

    /**
     * {@inheritDoc}
     */
    public function prepareListQuery()
    {
        return parent::prepareListQuery()->with(['file', 'filter']);
    }
}