public function TxBuffer::has in Purge 8.3
Check if the given object is already in buffer our not.
Parameters
\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface $invalidation: Invalidation object.
Return value
bool Whether the object is already in the buffer.
Overrides TxBufferInterface::has
3 calls to TxBuffer::has()
- TxBuffer::getState in src/
Plugin/ Purge/ Queue/ TxBuffer.php - Request the in-buffer set state for the given invalidation object.
- TxBuffer::set in src/
Plugin/ Purge/ Queue/ TxBuffer.php - Set the given state on one or multiple invalidation objects.
- TxBuffer::setProperty in src/
Plugin/ Purge/ Queue/ TxBuffer.php - Store a named property for the given invalidation object.
File
- src/
Plugin/ Purge/ Queue/ TxBuffer.php, line 128
Class
- TxBuffer
- Provides the transaction buffer.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function has(InvalidationInterface $invalidation) {
return isset($this->instances[$invalidation
->getId()]);
}