Class for rendering email message.
string 'email'
Constant for folder name containing email templates.
Cake\View\ViewBuilder|nullThe view builder instance being used.
Clone ViewBuilder instance when renderer is cloned.
Constructor
Constructs the view class instance based on the current configuration.
Render text/HTML content.
Reset view builder to defaults.
Saves a variable or an associative array of variables for use inside a template.
Get the view builder being used.
__clone(): void
Clone ViewBuilder instance when renderer is cloned.
void__construct()
Constructor
createView(string|null $viewClass = null): Cake\View\View
Constructs the view class instance based on the current configuration.
string|null $viewClass optional Optional namespaced class name of the View class to instantiate.
Cake\View\ViewCake\View\Exception\MissingViewExceptionrender(string $content, array<string> $types = []): array<string, string>
Render text/HTML content.
If there is no template set, the $content will be returned in a hash of the specified content types for the email.
string $content The content.
array<string> $types optional Content types to render. Valid array values are Message::MESSAGE_HTML, Message::MESSAGE_TEXT.
array<string, string>reset(): $this
Reset view builder to defaults.
$thisset(array|string $name, mixed $value = null): $this
Saves a variable or an associative array of variables for use inside a template.
array|string $name A string or an array of data.
mixed $value optional Value in case $name is a string (which then works as the key). Unused if $name is an associative array, otherwise serves as the values to $name's keys.
$thisviewBuilder(): Cake\View\ViewBuilder
Get the view builder being used.
Cake\View\ViewBuilderThe view builder instance being used.
Cake\View\ViewBuilder|null
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/class-Cake.Mailer.Renderer.html