protected function provideName()
    {
        $bt_len = 10;
        $backtrace = debug_backtrace(null, $bt_len);
        $str = '';
        for ($id = 2; $id < $bt_len; $id++) {
            $trace = isset($backtrace[$id]) ? $backtrace[$id] : [];
            if (empty($trace['class']) || !$this instanceof $trace['class']) {
                # may be closure
                if (isset($trace['file'], $trace['line'])) {
                    $str .= $trace['file'] . $trace['line'];
                }
            }
        }
        $this->config->setName(substr(md5($str), 0, 16));
    }
protected function provideName()
    {
        $bt_len = 10;
        $backtrace = debug_backtrace(null, $bt_len);
        $str = '';
        for ($id = 2; $id < $bt_len; $id++) {
            $trace = isset($backtrace[$id]) ? $backtrace[$id] : [];
            if (empty($trace['class']) || !$this instanceof $trace['class']) {
                # may be closure
                if (isset($trace['file'], $trace['line'])) {
                    $str .= $trace['file'] . $trace['line'];
                }
            }
        }
        $this->config->setName(substr(md5($str), 0, 16));
    }
protected function provideName ( ) { $ bt_len = 10 ; $ backtrace = debug_backtrace ( null , $ bt_len ) ; $ str = '' ; for ( $ id = 2 ; $ id < $ bt_len ; $ id ++ ) { $ trace = isset ( $ backtrace [ $ id ] ) ? $ backtrace [ $ id ] : [ ] ; if ( empty ( $ trace [ 'class' ] ) || ! $ this instanceof $ trace [ 'class' ] ) { # may be closure if ( isset ( $ trace [ 'file' ] , $ trace [ 'line' ] ) ) { $ str .= $ trace [ 'file' ] . $ trace [ 'line' ] ; } } } $ this -> config -> setName ( substr ( md5 ( $ str ) , 0 , 16 ) ) ; }
Provides unique name for each grid on the page

@return null
Provides unique name for each grid on the page