You are here

public function ConfigEntityDescriptionTrait::setDescription in Lightning Core 8.4

Same name and namespace in other branches
  1. 8.5 src/ConfigEntityDescriptionTrait.php \Drupal\lightning_core\ConfigEntityDescriptionTrait::setDescription()
  2. 8 src/ConfigEntityDescriptionTrait.php \Drupal\lightning_core\ConfigEntityDescriptionTrait::setDescription()
  3. 8.2 src/ConfigEntityDescriptionTrait.php \Drupal\lightning_core\ConfigEntityDescriptionTrait::setDescription()
  4. 8.3 src/ConfigEntityDescriptionTrait.php \Drupal\lightning_core\ConfigEntityDescriptionTrait::setDescription()

Implements EntityDescriptionInterface::getDescription().

File

src/ConfigEntityDescriptionTrait.php, line 20

Class

ConfigEntityDescriptionTrait
Provides a third-party settings implementation of EntityDescriptionInterface.

Namespace

Drupal\lightning_core

Code

public function setDescription($description) {
  return $this
    ->setThirdPartySetting('lightning_core', 'description', (string) $description);
}