API Deprecate render() (#10527)
This commit is contained in:
parent
8419984b36
commit
906cd0e76d
|
@ -875,12 +875,16 @@ class Email extends ViewableData
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @deprecated 4.12.0 Will be removed without equivalent functionality to replace it
|
||||||
|
*
|
||||||
* Render the email
|
* Render the email
|
||||||
* @param bool $plainOnly Only render the message as plain text
|
* @param bool $plainOnly Only render the message as plain text
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function render($plainOnly = false)
|
public function render($plainOnly = false)
|
||||||
{
|
{
|
||||||
|
Deprecation::notice('4.12.0', 'Will be removed without equivalent functionality to replace it');
|
||||||
|
|
||||||
if ($existingPlainPart = $this->findPlainPart()) {
|
if ($existingPlainPart = $this->findPlainPart()) {
|
||||||
$this->getSwiftMessage()->detach($existingPlainPart);
|
$this->getSwiftMessage()->detach($existingPlainPart);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue