silverstripe-gridfieldexten.../code/GridFieldExtensions.php
Jayden Seric 5254b1865c Fixed name-spacing for SilverStripe v4 compatibility
Used [silverstripe-upgrader](https://github.com/silverstripe/silverstripe-upgrader) to fix name-spacing for SilverStripe v4. I then alphabetically sorted the use declarations for readability.

Fixes: https://github.com/silverstripe-australia/silverstripe-gridfieldextensions/issues/166.
2016-12-21 15:23:43 +13:00

21 lines
459 B
PHP

<?php
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__));
}
}