mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
25 lines
547 B
PHP
25 lines
547 B
PHP
<?php
|
|
|
|
namespace SilverStripe\GridFieldExtensions;
|
|
|
|
use SilverStripe\View\Requirements;
|
|
|
|
/**
|
|
* Utility functions for the grid fields extension module.
|
|
*/
|
|
class GridFieldExtensions
|
|
{
|
|
|
|
public static function include_requirements()
|
|
{
|
|
$moduleDir = self::get_module_dir();
|
|
Requirements::css($moduleDir.'/css/GridFieldExtensions.css');
|
|
Requirements::javascript($moduleDir.'/javascript/GridFieldExtensions.js');
|
|
}
|
|
|
|
public static function get_module_dir()
|
|
{
|
|
return basename(dirname(__DIR__));
|
|
}
|
|
}
|