public function HttpPurgerBase::getLabel in Generic HTTP Purger 8
Retrieve the user-readable label for this purger instance.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup The translated label.
Overrides PurgerBase::getLabel
See also
\Drupal\purge\Annotation\PurgePurger::$label
File
- src/
Plugin/ Purge/ Purger/ HttpPurgerBase.php, line 123
Class
- HttpPurgerBase
- Abstract base class for HTTP based configurable purgers.
Namespace
Drupal\purge_purger_http\Plugin\Purge\PurgerCode
public function getLabel() {
if ($this->settings->name) {
return $this->settings->name;
}
else {
return parent::getLabel();
}
}