Method | Description | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) | ||
getBackendURLForBlock ( string $action, string $module, string $language = null, array $parameters = null, boolean $urlencode = true ) : string | Creates a Backend URL for a given action and module If you don't specify a language the current language will be used. | |
getFirstChildId ( integer $pageId ) : integer | Get the first child for a given parent | |
getFooterLinks ( ) : array | Get all footer links | |
getKeys ( string $language = null ) : array | Get the page-keys | |
getNavigation ( string $language = null ) : array | Get the navigation-items | |
getNavigationHTML ( string $type = 'page', integer $parentId, integer $depth = null, array $excludeIds = [], string $template = '/Core/Layout/Templates/Navigation.html.twig', integer $depthCounter = 1 ) : string | Get navigation HTML | |
getPageId ( string $url, string $language = null ) : integer | Get a menuId for an specified URL | |
getPageInfo ( integer $pageId ) : string | Get more info about a page | |
getURL ( integer $pageId, string $language = null ) : string | Get URL for a given pageId | |
getURLForBlock ( string $module, string $action = null, string $language = null, array $data = null ) : string | Get the URL for a give module & action combination | |
getURLForExtraId ( integer $id, string $language = null ) : string | Fetch the first direct link to an extra id | |
setExcludedPageIds ( mixed $pageIds ) | This function lets you add ignored pages | |
setSelectedPageIds ( ) | Set the selected page ids |
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
public static getBackendURLForBlock ( string $action, string $module, string $language = null, array $parameters = null, boolean $urlencode = true ) : string | ||
$action | string | The action to build the URL for. |
$module | string | The module to build the URL for. |
$language | string | The language to use, if not provided we will use the working language. |
$parameters | array | GET-parameters to use. |
$urlencode | boolean | Should the parameters be urlencoded? |
return | string |
public static getFirstChildId ( integer $pageId ) : integer | ||
$pageId | integer | The pageID wherefore we should retrieve the first child. |
return | integer |
public static getPageInfo ( integer $pageId ) : string | ||
$pageId | integer | The pageID wherefore you want more information. |
return | string |
public static getURLForBlock ( string $module, string $action = null, string $language = null, array $data = null ) : string | ||
$module | string | The module wherefore the URL should be build. |
$action | string | The specific action wherefore the URL should be build. |
$language | string | The language wherein the URL should be retrieved, if not provided we will load the language that was provided in the URL. |
$data | array | An array with keys and values that partially or fully match the data of the block. If it matches multiple versions of that block it will just return the first match. |
return | string |
public static setExcludedPageIds ( mixed $pageIds ) | ||
$pageIds | mixed | This can be a single page id or this can be an array with page ids. |