You are here

public function PurgersServiceInterface::createId in Purge 8.3

Create a unique instance ID for new purger instances.

Every purger has a unique instance identifier set by the purgers service, whether it is multi-instantiable or not. This helper creates a unique, random string, 10 characters long.

Return value

string The unique instance ID.

See also

\Drupal\purge\Plugin\Purge\Purger\PurgerInterface::getId()

1 method overrides PurgersServiceInterface::createId()
PurgersService::createId in src/Plugin/Purge/Purger/PurgersService.php
Create a unique instance ID for new purger instances.

File

src/Plugin/Purge/Purger/PurgersServiceInterface.php, line 38

Class

PurgersServiceInterface
Describes a service that distributes access to one or more purgers.

Namespace

Drupal\purge\Plugin\Purge\Purger

Code

public function createId();