public function PurgersService::getTypes in Purge 8.3
Retrieve the list of supported invalidation types.
Return value
string[] List of supported invalidation type plugins.
Overrides PurgersServiceInterface::getTypes
File
- src/
Plugin/ Purge/ Purger/ PurgersService.php, line 290
Class
- PurgersService
- Provides the service that distributes access to one or more purgers.
Namespace
Drupal\purge\Plugin\Purge\PurgerCode
public function getTypes() {
if (is_null($this->types)) {
$this
->initializePurgers();
$this->types = [];
foreach ($this->purgers as $purger) {
foreach ($purger
->getTypes() as $type) {
if (!in_array($type, $this->types)) {
$this->types[] = $type;
}
}
}
}
return $this->types;
}