class WelcomeController extends AbstractController (View source)

Traits

Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface

Properties

protected Application $app from  ApplicationAwareTrait
protected Repository $config
protected WelcomeItemFactory $itemFactory
protected Token $token

Methods

setApplication(Application $app)

Setter method for the application

bool
shouldDisplayAnnouncementToUser(User $user)

Allows for additional filtering of announcements

onViewAnnouncement(User $user)

No description

mixed
createAnnouncementComponent(Announcement $announcement, array $slides)

No description

getSlide(User $user)

No description

array
getSlides(User $user)

No description

__construct(Token $token, Repository $config, WelcomeItemFactory $itemFactory)

No description

Details

setApplication(Application $app)

Setter method for the application

Parameters

Application $app

bool shouldDisplayAnnouncementToUser(User $user)

Allows for additional filtering of announcements

Parameters

User $user

Return Value

bool

onViewAnnouncement(User $user)

No description

Parameters

User $user

mixed createAnnouncementComponent(Announcement $announcement, array $slides)

No description

Parameters

Announcement $announcement
array $slides

Return Value

mixed

SlideInterface getSlide(User $user)

No description

Parameters

User $user

Return Value

SlideInterface

array getSlides(User $user)

No description

Parameters

User $user

Return Value

array

__construct(Token $token, Repository $config, WelcomeItemFactory $itemFactory)

No description

Parameters

Token $token
Repository $config
WelcomeItemFactory $itemFactory