You are here

views_navigation_plugin_ds_entity_view.inc in Views navigation 7

Function to return plugin Display Suite entity view.

File

views/views_navigation_plugin_ds_entity_view.inc
View source
<?php

/**
 * @file
 * Function to return plugin Display Suite entity view.
 */

/**
 * Class views_navigation_plugin_ds_entity_view.
 */
class views_navigation_plugin_ds_entity_view extends views_plugin_ds_entity_view {

  /**
   * Render callback.
   */
  public function render($values) {
    $return = parent::render($values);

    // For entities such as nodes, the HTML containing the link is already
    // built, so that the only way we found is to look for the alias in the
    // rendered HTML...
    if (isset($this->view->views_navigation_cid)) {
      module_load_include('inc', 'views_navigation');
      foreach ($this->entities as $entity) {
        _views_navigation_replace_href_in_html($return, $entity, $this->view);
      }
    }
    return $return;
  }

}

Classes

Namesort descending Description
views_navigation_plugin_ds_entity_view Class views_navigation_plugin_ds_entity_view.