getCacheBuilder() public static method

public static getCacheBuilder ( ) : CacheBuilder
return CacheBuilder
Example #1
0
 /**
  * Get the navigation-items
  *
  * @param string $language The language wherefore the keys should be loaded,
  *                         if not provided we will load the language that was provided in the URL.
  * @return array
  */
 public static function getNavigation($language = null)
 {
     $language = $language !== null ? (string) $language : FRONTEND_LANGUAGE;
     return BackendPagesModel::getCacheBuilder()->getNavigation($language);
 }
Example #2
0
 /**
  * Get the navigation-items
  *
  * @param string $language The language to use, if not provided we will use the working language.
  * @return array
  */
 public static function getNavigation($language = null)
 {
     $language = $language !== null ? (string) $language : Language::getWorkingLanguage();
     $cacheBuilder = BackendPagesModel::getCacheBuilder();
     return $cacheBuilder->getNavigation($language);
 }