public function DomainStorageDecorator::createMachineName in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/DomainStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\DomainStorageDecorator::createMachineName()
- 4.x webprofiler/src/Entity/Decorators/Config/DomainStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\DomainStorageDecorator::createMachineName()
Creates a machine-name string from the hostname.
This string is the primary key of the entity.
Parameters
string $hostname: The hostname of the domain record. If empty, the current request will be used.
Return value
string A string containing A-Z, a-z, 0-9, and _ characters.
Overrides DomainStorageInterface::createMachineName
File
- webprofiler/
src/ Entity/ Decorators/ Config/ DomainStorageDecorator.php, line 79
Class
- DomainStorageDecorator
- Class DomainStorageDecorator
Namespace
Drupal\webprofiler\Entity\Decorators\ConfigCode
public function createMachineName($hostname = NULL) {
return $this
->getOriginalObject()
->createMachineName($hostname);
}