luyadev/luya-module-cms

View on GitHub
tests/data/blocks/PhpTestBlock.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace cmstests\data\blocks;

use luya\cms\base\PhpBlock;

class PhpTestBlock extends PhpBlock
{
    public $module = 'app';

    public function name()
    {
        return 'PHP Test Block';
    }

    public function config()
    {
        return [];
    }

    public function admin()
    {
        return 'admin';
    }

    public function extraVars()
    {
        return ['foo' => 'bar'];
    }
}