You are here

function LinkitSearchPluginFile::createGroup in Linkit 7.3

Overrides LinkitSearchPluginEntity::createGroup().

Overrides LinkitSearchPluginEntity::createGroup

File

plugins/linkit_search/file.class.php, line 82
Define Linkit file search plugin class.

Class

LinkitSearchPluginFile
Reprecents a Linkit file search plugin.

Code

function createGroup($entity) {

  // The the standard group name.
  $group = parent::createGroup($entity);

  // Add the scheme.
  if ($this->conf['group_by_scheme']) {

    // Get all stream wrappers.
    $stream_wrapper = file_get_stream_wrappers();
    $group .= ' - ' . $stream_wrapper[file_uri_scheme($entity->uri)]['name'];
  }
  return $group;
}