You are here

public function AcquiaPurgeProcessorsService::get in Acquia Purge 7

Retrieve a loaded processor object.

Parameters

string $class: The name of the processor class you need.

Return value

AcquiaPurgeProcessorInterface|false Returns the processor, or FALSE when it doesn't exist.

File

lib/processor/AcquiaPurgeProcessorsService.php, line 118
Contains AcquiaPurgeProcessorsService.

Class

AcquiaPurgeProcessorsService
Service that loads and bundles queue processor backends.

Code

public function get($class) {
  if (!isset($this->processors[$class])) {
    return FALSE;
  }
  return $this->processors[$class];
}