You are here

class TotalNotSupportedStatistic in Purge 8.3

Total number of not supported invalidations.

Hierarchy

Expanded class hierarchy of TotalNotSupportedStatistic

File

src/Plugin/Purge/Queue/TotalNotSupportedStatistic.php, line 12

Namespace

Drupal\purge\Plugin\Purge\Queue
View 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

Namesort descending Modifiers Type Description Overrides
Counter::$callback protected property The callback that is called on writes when not NULL.
Counter::$permissionDecrement protected property Whether it is possible to call ::decrement() or not.
Counter::$permissionIncrement protected property Whether it is possible to call ::increment() or not.
Counter::$permissionSet protected property Whether it is possible to call ::set() or not.
Counter::$value protected property The value of the counter.
Counter::decrement public function Decrease the counter. Overrides CounterInterface::decrement
Counter::disableDecrement public function Disable the possibility to decrement the counter. Overrides CounterInterface::disableDecrement
Counter::disableIncrement public function Disable the possibility to increment the counter. Overrides CounterInterface::disableIncrement
Counter::disableSet public function Disable the possibility of setting counter. Overrides CounterInterface::disableSet
Counter::get public function Get the current value. Overrides CounterInterface::get
Counter::getInteger public function Get the current value as integer. Overrides CounterInterface::getInteger
Counter::increment public function Increase the counter. Overrides CounterInterface::increment
Counter::set public function Overwrite the counter value. Overrides CounterInterface::set
Counter::setDirectly protected function Overwrite the counter value (permission bypass).
Counter::setWriteCallback public function Set the callback that gets called when writes occur. Overrides CounterInterface::setWriteCallback
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.
TotalNotSupportedStatistic::getDescription public function Gets the description of the counter. Overrides ExplainedCounterInterface::getDescription
TotalNotSupportedStatistic::getId public function Gets a short machine readable ID. Overrides ExplainedCounterInterface::getId
TotalNotSupportedStatistic::getTitle public function Gets the title of the counter. Overrides ExplainedCounterInterface::getTitle
TotalNotSupportedStatistic::__construct public function Construct a counter object. Overrides Counter::__construct