class TotalNotSupportedStatistic in Purge 8.3
Total number of not supported invalidations.
Hierarchy
- class \Drupal\purge\Counter\Counter implements CounterInterface
- class \Drupal\purge\Plugin\Purge\Queue\TotalNotSupportedStatistic implements ExplainedCounterInterface uses StringTranslationTrait
Expanded class hierarchy of TotalNotSupportedStatistic
File
- src/
Plugin/ Purge/ Queue/ TotalNotSupportedStatistic.php, line 12
Namespace
Drupal\purge\Plugin\Purge\QueueView source
class TotalNotSupportedStatistic extends Counter implements ExplainedCounterInterface {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function __construct($value = 0.0) {
parent::__construct($value);
$this
->disableDecrement();
}
/**
* {@inheritdoc}
*/
public function getId() {
return 'total_not_supported';
}
/**
* {@inheritdoc}
*/
public function getTitle() {
return $this
->t('Total number of unsupported invalidations.');
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this
->t('Queue items can be unsupported at any point in time when no configured purgers supported the type of cache invalidation requested. For example, when your purger only supports "tag" but a "url" item ended up in the queue and got offered to the purger, this statistic is updated. However, it is totally possible that this same queue item later succeeds because a new version of the purger now suddenly supports this type of cache invalidation.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Counter:: |
protected | property | The callback that is called on writes when not NULL. | |
Counter:: |
protected | property | Whether it is possible to call ::decrement() or not. | |
Counter:: |
protected | property | Whether it is possible to call ::increment() or not. | |
Counter:: |
protected | property | Whether it is possible to call ::set() or not. | |
Counter:: |
protected | property | The value of the counter. | |
Counter:: |
public | function |
Decrease the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility to decrement the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility to increment the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility of setting counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Get the current value. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Get the current value as integer. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Increase the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Overwrite the counter value. Overrides CounterInterface:: |
|
Counter:: |
protected | function | Overwrite the counter value (permission bypass). | |
Counter:: |
public | function |
Set the callback that gets called when writes occur. Overrides CounterInterface:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TotalNotSupportedStatistic:: |
public | function |
Gets the description of the counter. Overrides ExplainedCounterInterface:: |
|
TotalNotSupportedStatistic:: |
public | function |
Gets a short machine readable ID. Overrides ExplainedCounterInterface:: |
|
TotalNotSupportedStatistic:: |
public | function |
Gets the title of the counter. Overrides ExplainedCounterInterface:: |
|
TotalNotSupportedStatistic:: |
public | function |
Construct a counter object. Overrides Counter:: |