You are here

public function Email::setTo in Commerce Email 8

Sets the "to" address.

Parameters

string $to: The "to" address.

Return value

$this

Overrides EmailInterface::setTo

File

src/Entity/Email.php, line 222

Class

Email
Defines the email entity class.

Namespace

Drupal\commerce_email\Entity

Code

public function setTo($to) {
  $this->to = $to;
  return $this;
}