2017-10-18 12:32:08 +13:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\CMS\Tests\Controllers\LeftAndMainpageIconsExtensionTest;
|
|
|
|
|
|
|
|
use SilverStripe\Core\Manifest\ModuleResourceLoader;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2024-08-29 13:54:17 +12:00
|
|
|
use SilverStripe\Core\Extension;
|
2017-10-18 12:32:08 +13:00
|
|
|
|
2024-08-29 13:54:17 +12:00
|
|
|
class ModuleIconExtension extends Extension implements TestOnly
|
2017-10-18 12:32:08 +13:00
|
|
|
{
|
|
|
|
public static function get_extra_config()
|
|
|
|
{
|
|
|
|
// Mock a "fixed" path, but use a non-fixed resource url
|
|
|
|
$path = ModuleResourceLoader::resourcePath(
|
|
|
|
'silverstripe/cms:tests/php/Controllers/LeftAndMainPageIconsExtensionTest/icon_c.jpg'
|
|
|
|
);
|
|
|
|
return [
|
|
|
|
'icon' => $path,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|