class AccountService (View source)

Useful functions when working with "My Account" functionality

Class AccountService

Methods

bool
inMyAccount(Page|string|null $pageOrPath)

Test if the a page or path path is within the my account section.

Details

bool inMyAccount(Page|string|null $pageOrPath)

Test if the a page or path path is within the my account section.

Parameters

Page|string|null $pageOrPath

Return Value

bool