You are here

public function Profile::setDescription in Linkit 8.4

Same name and namespace in other branches
  1. 8.5 src/Entity/Profile.php \Drupal\linkit\Entity\Profile::setDescription()

Sets the profile description.

Parameters

string $description: The profile description.

Return value

$this

Overrides ProfileInterface::setDescription

File

src/Entity/Profile.php, line 128
Contains \Drupal\linkit\Entity\Profile.

Class

Profile
Defines the linkit profile entity.

Namespace

Drupal\linkit\Entity

Code

public function setDescription($description) {
  $this
    ->set('description', trim($description));
  return $this;
}