You are here

public function GridStackBase::randomize in GridStack 8.2

Returns a random name.

1 call to GridStackBase::randomize()
GridStackBase::getRandomizedId in src/Entity/GridStackBase.php
Returns a randomized ID.

File

src/Entity/GridStackBase.php, line 172

Class

GridStackBase
Defines the base class for GridStack configuration entity.

Namespace

Drupal\gridstack\Entity

Code

public function randomize($rand = 4) {
  $random = new Random();
  return mb_strtolower($random
    ->name($rand));
}