ViewComponents
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
at line 47
string
getComponentsPath()
Get components path
at line 57
string
getPagesPath()
Get pages path
at line 67
string
getEmailsPath()
Get emails components path
at line 77
string
getMacrosPath()
Get macros path
at line 88
array
getMacros(string|null $path = null)
Scan directory and return macros list
at line 115
array
getPages(string|null $parent = null)
Scan directory and return pages list
at line 126
array
getEmails(string|null $parent = null)
Scan directory and return emails list
at line 138
string
getComponentPath(string|null $componentName, string $type = 'components')
Get component path
at line 153
array
getComponents(string|null $parent = null, string $type = 'components')
Scan directory and return components list
at line 186
array
getComponentsRecursive(string|null $path = null)
Scan directory and return components list