public function VarnishPurgerBase::getLabel in Varnish purger 8.2
Same name and namespace in other branches
- 8 src/Plugin/Purge/Purger/VarnishPurgerBase.php \Drupal\varnish_purger\Plugin\Purge\Purger\VarnishPurgerBase::getLabel()
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/ VarnishPurgerBase.php, line 118
Class
- VarnishPurgerBase
- Abstract base class for HTTP based configurable purgers.
Namespace
Drupal\varnish_purger\Plugin\Purge\PurgerCode
public function getLabel() {
if ($this->settings->name) {
return $this->settings->name;
}
else {
return parent::getLabel();
}
}