Helper
extends ControllerBase
in package
Prepare and format data to be rendered in the template.
Table of Contents
Properties
- $dateFormatter : DateFormatterInterface
- The date formatter service.
- $httpClient : Client
- Guzzle\Client instance.
- $loggerFactory : LoggerChannelFactoryInterface
- Logger channel factory interface instance.
- $moduleHandler : ModuleHandlerInterface
- The entity ModuleHandler.
- $renderer : RendererInterface
- Drupal renderer service.
- $stateService : StateInterface
- The Drupal State API service.
Methods
- __construct() : mixed
- CMSConnector constructor.
- generateShortLink() : mixed
- Generate links with short anchor texts.
- getDisabledSpeakers() : mixed
- Custom function that returns an array with disabled speaker ids.
- getFlickerAlbum() : mixed
- Get flicker album.
- getImgUrl() : mixed
- Custom function to get image urls.
- parseExternalUrl() : mixed
- Parse external urls.
- prepareSessionLinks() : mixed
- Prepare session links.
- showPresentations() : mixed
- Return if presentations should be displayed for the current session.
Properties
$dateFormatter
The date formatter service.
protected
DateFormatterInterface
$dateFormatter
$httpClient
Guzzle\Client instance.
protected
Client
$httpClient
$loggerFactory
Logger channel factory interface instance.
protected
LoggerChannelFactoryInterface
$loggerFactory
$moduleHandler
The entity ModuleHandler.
protected
ModuleHandlerInterface
$moduleHandler
$renderer
Drupal renderer service.
protected
RendererInterface
$renderer
$stateService
The Drupal State API service.
protected
StateInterface
$stateService
Methods
__construct()
CMSConnector constructor.
public
__construct(StateInterface $stateService, Client $http_client, LoggerChannelFactoryInterface $factory, ModuleHandlerInterface $moduleHandler, RendererInterface $renderer) : mixed
Parameters
- $stateService : StateInterface
-
Drupal State API service.
- $http_client : Client
-
Guzzle\Client instance.
- $factory : LoggerChannelFactoryInterface
-
A logger channel factory interface instance.
- $moduleHandler : ModuleHandlerInterface
-
The module handler service.
- $renderer : RendererInterface
-
The Drupal renderer service.
generateShortLink()
Generate links with short anchor texts.
public
generateShortLink(mixed $anchor_text, mixed $url, mixed $length) : mixed
Parameters
- $anchor_text : mixed
- $url : mixed
- $length : mixed
getDisabledSpeakers()
Custom function that returns an array with disabled speaker ids.
public
getDisabledSpeakers() : mixed
getFlickerAlbum()
Get flicker album.
public
getFlickerAlbum(mixed $url) : mixed
Parameters
- $url : mixed
getImgUrl()
Custom function to get image urls.
public
getImgUrl(mixed $entity_type, mixed $url[, mixed $theme_id = NULL ]) : mixed
Parameters
- $entity_type : mixed
- $url : mixed
- $theme_id : mixed = NULL
parseExternalUrl()
Parse external urls.
public
parseExternalUrl(mixed $url) : mixed
Parameters
- $url : mixed
prepareSessionLinks()
Prepare session links.
public
prepareSessionLinks(mixed $id, mixed $items) : mixed
Parameters
- $id : mixed
- $items : mixed
showPresentations()
Return if presentations should be displayed for the current session.
public
showPresentations(mixed $data) : mixed
Return always true unless the session is from the current year and the event itself has not ended.
Parameters
- $data : mixed