You are here

protected function SeedCalculator::debug in Views random seed 8

Quick debugger via Drupal messages.

Parameters

$string:

3 calls to SeedCalculator::debug()
SeedCalculator::calculateSeed in src/SeedCalculator.php
Calculate a seed.
SeedCalculator::generateSeed in src/SeedCalculator.php
Helper function to generate a seed
SeedCalculator::getSeed in src/SeedCalculator.php
Get the seed either from session or store.

File

src/SeedCalculator.php, line 197

Class

SeedCalculator
Calculates seeds.

Namespace

Drupal\views_random_seed

Code

protected function debug($string) {
  if (Settings::get('views_random_seed_view_messages', FALSE)) {
    \Drupal::messenger()
      ->addMessage($string);
  }
}