You are here

public function ConfigPages::setLabel in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::setLabel()
  2. 8.2 src/Entity/ConfigPages.php \Drupal\config_pages\Entity\ConfigPages::setLabel()

Sets the config page description.

Parameters

string $info: The config page description.

Return value

\Drupal\config_pages\ConfigPagesInterface The class instance that this method is called on.

Overrides ConfigPagesInterface::setLabel

File

src/Entity/ConfigPages.php, line 155

Class

ConfigPages
Defines the config page entity class.

Namespace

Drupal\config_pages\Entity

Code

public function setLabel($label) {
  $this
    ->set('label', $label);
  return $this;
}