You are here

public function SiteSettingEntity::setName in Site Settings and Labels 8

Sets the Site Setting name.

Parameters

string $name: The Site Setting name.

Return value

\Drupal\site_settings\SiteSettingEntityInterface The called Site Setting entity.

Overrides SiteSettingEntityInterface::setName

File

src/Entity/SiteSettingEntity.php, line 103

Class

SiteSettingEntity
Defines the Site Setting entity.

Namespace

Drupal\site_settings\Entity

Code

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