Skip to content
Snippets Groups Projects

Devel

Merged Piotr Potrebka requested to merge devel into main
3 files
+ 86
124
Compare changes
  • Side-by-side
  • Inline

Files

+ 23
0
@@ -58,6 +58,20 @@ abstract class EmailAbstract implements EmailInterface {
*/
abstract public function get_id(): string;
/**
* @return string
*/
public function get_from(): string {
return '';
}
/**
* @return string
*/
public function get_from_name(): string {
return '';
}
/**
* @return bool
*/
@@ -274,5 +288,14 @@ abstract class EmailAbstract implements EmailInterface {
return $this->content;
}
/**
* @param string $string
*
* @return array|string|string[]
*/
protected function replace_placeholders( string $string ): string {
return (string) str_replace( array_keys( $this->placeholders ), array_values( $this->placeholders ), $string );
}
}
Loading