public functionpreSave(EntityStorageInterface $storage) {
parent::preSave($storage);
// Trim the alias value of whitespace and slashes. Ensure to not trim the// slash on the left side.$alias = rtrim(trim($this->getAlias()), "\\/");
$this->setAlias($alias);
}