silverstripe-gridfieldexten.../tests/Stub/StubA.php

20 lines
322 B
PHP
Raw Normal View History

<?php
namespace Symbiote\GridFieldExtensions\Tests\Stub;
use SilverStripe\Dev\TestOnly;
class StubA implements TestOnly
{
public function i18n_singular_name()
{
$class = get_class($this);
2022-04-13 07:44:44 +02:00
return substr($class ?? '', -1);
}
public function canCreate()
{
return true;
}
}