Back to SiteApplication class

Method setLanguageFilter

public bool
setLanguageFilter
(mixed $state = false)
Set the current state of the language filter.
Parameters
  • bool $state The new state of the language filter
Returns
  • bool The previous state
Since
  • 3.2

Method setLanguageFilter - Source code

/**
 * Set the current state of the language filter.
 *
 * @param   boolean  $state  The new state of the language filter
 *
 * @return	boolean	 The previous state
 *
 * @since	3.2
 */
public function setLanguageFilter($state = false)
{
    $old = $this->getLanguageFilter();
    $this->language_filter = $state;
    return $old;
}