You are here

public function State::getRandomKey in Advanced CSS/JS Aggregation 8.2

Get a semi-random (randomness not guaranteed) key.

1 call to State::getRandomKey()
State::getRandom in src/State/State.php
Get a semi-random (randomness not guaranteed) value.

File

src/State/State.php, line 38

Class

State
Provides AdvAgg State interfaces with a few extra commands.

Namespace

Drupal\advagg\State

Code

public function getRandomKey() {
  $key = array_rand($this
    ->getAll());
  return $key;
}