You are here

public function Group::setDescription in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Group.php \Drupal\rng\Entity\Group::setDescription()
  2. 8 src/Entity/Group.php \Drupal\rng\Entity\Group::setDescription()

Sets the description.

Parameters

string $description: The description.

Return value

\Drupal\rng\Entity\GroupInterface Returns group for chaining.

Overrides GroupInterface::setDescription

File

src/Entity/Group.php, line 96

Class

Group
Defines the application group entity class.

Namespace

Drupal\rng\Entity

Code

public function setDescription($description) {
  $this
    ->set('description', [
    'value' => $description,
  ]);
}