trait ViewComponents

View components trait

Methods

string
getViewPath(string|null $componentsType = null)

Get view path

string
getComponentsPath()

Get components path

string
getPagesPath()

Get pages path

string
getEmailsPath()

Get emails components path

string
getMacrosPath()

Get macros path

array
getMacros(string|null $path = null)

Scan directory and return macros list

array
getPages(string|null $parent = null)

Scan directory and return pages list

array
getEmails(string|null $parent = null)

Scan directory and return emails list

string
getComponentPath(string|null $componentName, string $type = 'components')

Get component path

array
getComponents(string|null $parent = null, string $type = 'components')

Scan directory and return components list

array
getComponentsRecursive(string|null $path = null)

Scan directory and return components list

Details

at line 25
string getViewPath(string|null $componentsType = null)

Get view path

Parameters

string|null $componentsType

Return Value

string

at line 47
string getComponentsPath()

Get components path

Return Value

string

at line 57
string getPagesPath()

Get pages path

Return Value

string

at line 67
string getEmailsPath()

Get emails components path

Return Value

string

at line 77
string getMacrosPath()

Get macros path

Return Value

string

at line 88
array getMacros(string|null $path = null)

Scan directory and return macros list

Parameters

string|null $path

Return Value

array

at line 115
array getPages(string|null $parent = null)

Scan directory and return pages list

Parameters

string|null $parent

Return Value

array

at line 126
array getEmails(string|null $parent = null)

Scan directory and return emails list

Parameters

string|null $parent

Return Value

array

at line 138
string getComponentPath(string|null $componentName, string $type = 'components')

Get component path

Parameters

string|null $componentName
string $type

Return Value

string

at line 153
array getComponents(string|null $parent = null, string $type = 'components')

Scan directory and return components list

Parameters

string|null $parent
string $type

Return Value

array

at line 186
array getComponentsRecursive(string|null $path = null)

Scan directory and return components list

Parameters

string|null $path

Return Value

array