original_string: protected function _cacheConfig($action, $template = null)
      {
          if (empty($this->_cache)) {
              return [];
          }
          $template = $template ?: 'default';
          $key = 'cell_' . Inflector::underscore(get_class($this)) . '_' . $action . '_' . $template;
          $key = str_replace('\\', '_', $key);
          $default = [
              'config' => 'default',
              'key' => $key
          ];
          if ($this->_cache === true) {
              return $default;
          }
  
          return $this->_cache + $default;
      }
code: protected function _cacheConfig($action, $template = null)
      {
          if (empty($this->_cache)) {
              return [];
          }
          $template = $template ?: 'default';
          $key = 'cell_' . Inflector::underscore(get_class($this)) . '_' . $action . '_' . $template;
          $key = str_replace('\\', '_', $key);
          $default = [
              'config' => 'default',
              'key' => $key
          ];
          if ($this->_cache === true) {
              return $default;
          }
  
          return $this->_cache + $default;
      }
code_tokens: protected function _cacheConfig ( $ action , $ template = null ) { if ( empty ( $ this -> _cache ) ) { return [ ] ; } $ template = $ template ? : 'default' ; $ key = 'cell_' . Inflector :: underscore ( get_class ( $ this ) ) . '_' . $ action . '_' . $ template ; $ key = str_replace ( '\\' , '_' , $ key ) ; $ default = [ 'config' => 'default' , 'key' => $ key ] ; if ( $ this -> _cache === true ) { return $ default ; } return $ this -> _cache + $ default ; }
docstring: Generate the cache key to use for this cell.
  
  If the key is undefined, the cell class and action name will be used.
  
  @param string $action The action invoked.
  @param string|null $template The name of the template to be rendered.
  @return array The cache configuration.
docstring_tokens: Generate the cache key to use for this cell .