You are here

protected function EntityMenuLinkCloneForm::genUuid in Menu Link Clone 8

Genereate UUID (Everytime gives you new unique ids.).

1 call to EntityMenuLinkCloneForm::genUuid()
EntityMenuLinkCloneForm::setUuidForMenuItems in src/Form/EntityMenuLinkCloneForm.php
Set UUID for menu items.

File

src/Form/EntityMenuLinkCloneForm.php, line 89

Class

EntityMenuLinkCloneForm
Provides a menu link clone form.

Namespace

Drupal\menu_link_clone\Form

Code

protected function genUuid() {
  $uuid_service = \Drupal::service('uuid');
  $uuid = $uuid_service
    ->generate();
  return $uuid;
}