Craft\NeoFieldType::_includeResources PHP Method

_includeResources() private method

Includes the resource (Javascript) files for when outputting the settings or input HTML.
private _includeResources ( string $class, array $settings = [] )
$class string - Either "configurator" or "input"
$settings array - Settings to be JSON encoded and passed to the Javascript
    private function _includeResources($class, $settings = [])
    {
        craft()->templates->includeJsResource('neo/polyfill.js');
        craft()->templates->includeJsResource('neo/main.js');
        craft()->templates->includeJs('new Neo.' . ucfirst($class) . '(' . JsonHelper::encode($settings) . ')');
    }