You are here

public function Contact::setName in RedHen CRM 8

Sets the Contact name.

Parameters

string $name: The Contact name.

Return value

\Drupal\redhen_contact\ContactInterface The called Contact entity.

Overrides ContactInterface::setName

File

modules/redhen_contact/src/Entity/Contact.php, line 99

Class

Contact
Defines the Contact entity.

Namespace

Drupal\redhen_contact\Entity

Code

public function setName($name) {
  $this
    ->set('name', $name);
  return $this;
}