You are here

public function EntityPagerSetup::getSettings in Entity Pager 7

Get Views Settings.

Get the values input in Views > Settings > Options from the View. To allow the class to take advantage of dependency injection the whole $view has been injected into the class. This function uses the part of the view data that is to be consistently used to get the options settings.

Parameters

object $view: The view object.

Return value

array The settings the were selected in the View.

3 calls to EntityPagerSetup::getSettings()
EntityPagerAdvice::checkPerformance in includes/EntityPagerAdvice.inc
Check performance.
EntityPagerOut::calculateNextAllPrevValuesFromView in includes/EntityPagerOut.inc
Calculate the values for the links.
EntityPagerOut::getEntityPager in includes/EntityPagerOut.inc
Entity Pager return links.

File

includes/EntityPagerSetup.inc, line 153
General setup base Class for Entity Pager module.

Class

EntityPagerSetup
Class EntityPagerSetup.

Code

public function getSettings($view) {
  if (!isset($view->style_plugin->options['next_prev'])) {
    $view->style_plugin->options['next_prev'] = $this
      ->getDefault();
  }
  return $view->style_plugin->options;
}