You are here

public function Group::setDescription in RNG - Events and Registrations 8

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

Sets the description.

Parameters

string $description: The description.

Return value

\Drupal\rng\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,
  ]);
}