public function EntityPager::getDefault in Entity Pager 7
Get Default value.
Use this one method to get all default values in a consistent way. If a field is specified return just that field value. If no field is specified return the whole array.
Parameters
string|null $field: The field the default value is required for.
Return value
bool|array|string The value of the the field requested.
1 call to EntityPager::getDefault()
- EntityPagerSetup::getSettings in includes/
EntityPagerSetup.inc - Get Views Settings.
File
- includes/
EntityPager.inc, line 68 - General setup base Class for Entity Pager module.
Class
- EntityPager
- Class EntityPager.
Code
public function getDefault($field = NULL) {
$value = FALSE;
if (is_null($field)) {
$value = $this->default;
}
elseif (isset($this->default[$field])) {
$value = $this->default[$field];
}
return $value;
}