Pimcore\Model\Tool\UUID::create PHP Method

create() public static method

public static create ( $item ) : static
$item
return static
    public static function create($item)
    {
        $uuid = new static();
        $uuid->setSystemInstanceIdentifier()->setItem($item);
        $uuid->setUuid($uuid->createUuid());
        return $uuid;
    }

Usage Example

Esempio n. 1
0
 /**
  * @param $e
  */
 public function createUuid($e)
 {
     UUID::create($e->getTarget());
 }
All Usage Examples Of Pimcore\Model\Tool\UUID::create