src/Html/Builder.php
protected function isCallbackFunction($value, $key)
    {
        if (empty($value)) {
            return false;
        }

        $callbacks = $this->config->get('datatables-html.callback', ['$', '$.', 'function']);

        return Str::startsWith(trim($value), $callbacks) || Str::contains($key, 'editor');
    }
protected function isCallbackFunction($value, $key)
    {
        if (empty($value)) {
            return false;
        }

        $callbacks = $this->config->get('datatables-html.callback', ['$', '$.', 'function']);

        return Str::startsWith(trim($value), $callbacks) || Str::contains($key, 'editor');
    }
protected function isCallbackFunction ( $ value , $ key ) { if ( empty ( $ value ) ) { return false ; } $ callbacks = $ this -> config -> get ( 'datatables-html.callback' , [ '$' , '$.' , 'function' ] ) ; return Str :: startsWith ( trim ( $ value ) , $ callbacks ) || Str :: contains ( $ key , 'editor' ) ; }
Check if given key & value is a valid callback js function.

@param string $value
@param string $key
@return bool
Check if given key & value is a valid callback js function .