You are here

public function EntityPagerViewsPluginStyle::render in Entity Pager 7

Render the display in this style.

Overrides views_plugin_style::render

File

views/plugins/EntityPagerViewsPluginStyle.inc, line 18
Contains the Entity Pager style plugin.

Class

EntityPagerViewsPluginStyle
Style plugin to render each item as a row in a table.

Code

public function render() {
  if ($this
    ->uses_row_plugin() && empty($this->row_plugin)) {
    debug('views_plugin_style_default: Missing row plugin');
    return;
  }
  $pager = new EntityPagerOut($this->view);
  if ($links = $pager
    ->getEntityPager()) {

    // Only show if it has contents.
    $variables = array(
      'links' => $links,
      'count_word' => $pager
        ->getCountWord(),
    );
    return theme('entity_pager', $variables);
  }
}