original_string: public function getThumb(array $data, array $options)
      {
          $options += array(
              'placeholder' => true,
              'imagestyle' => $this->config->get('image_style', 3));
  
          if (empty($options['entity_id'])) {
              return empty($options['placeholder']) ? '' : $this->getPlaceholder($options['imagestyle']);
          }
  
          $conditions = array(
              'entity' => $options['entity'],
              'entity_id' => $options['entity_id']
          );
  
          foreach ($this->getList($conditions) as $file) {
              if (isset($data[$options['entity'] . '_id']) && $file['entity_id'] == $data[$options['entity'] . '_id']) {
                  return $this->getUrl($file['path'], $options['imagestyle']);
              }
          }
  
          return empty($options['placeholder']) ? '' : $this->getPlaceholder($options['imagestyle']);
      }
code: public function getThumb(array $data, array $options)
      {
          $options += array(
              'placeholder' => true,
              'imagestyle' => $this->config->get('image_style', 3));
  
          if (empty($options['entity_id'])) {
              return empty($options['placeholder']) ? '' : $this->getPlaceholder($options['imagestyle']);
          }
  
          $conditions = array(
              'entity' => $options['entity'],
              'entity_id' => $options['entity_id']
          );
  
          foreach ($this->getList($conditions) as $file) {
              if (isset($data[$options['entity'] . '_id']) && $file['entity_id'] == $data[$options['entity'] . '_id']) {
                  return $this->getUrl($file['path'], $options['imagestyle']);
              }
          }
  
          return empty($options['placeholder']) ? '' : $this->getPlaceholder($options['imagestyle']);
      }
code_tokens: public function getThumb ( array $ data , array $ options ) { $ options += array ( 'placeholder' => true , 'imagestyle' => $ this -> config -> get ( 'image_style' , 3 ) ) ; if ( empty ( $ options [ 'entity_id' ] ) ) { return empty ( $ options [ 'placeholder' ] ) ? '' : $ this -> getPlaceholder ( $ options [ 'imagestyle' ] ) ; } $ conditions = array ( 'entity' => $ options [ 'entity' ] , 'entity_id' => $ options [ 'entity_id' ] ) ; foreach ( $ this -> getList ( $ conditions ) as $ file ) { if ( isset ( $ data [ $ options [ 'entity' ] . '_id' ] ) && $ file [ 'entity_id' ] == $ data [ $ options [ 'entity' ] . '_id' ] ) { return $ this -> getUrl ( $ file [ 'path' ] , $ options [ 'imagestyle' ] ) ; } } return empty ( $ options [ 'placeholder' ] ) ? '' : $ this -> getPlaceholder ( $ options [ 'imagestyle' ] ) ; }
docstring: Returns a string containing a thumbnail image URL
  @param array $data
  @param array $options
  @return string
docstring_tokens: Returns a string containing a thumbnail image URL