public function TrafficRegistryInterface::add in URLs queuer 8
Register a new URL or path with its associated cache tags at the registry.
@warning Implementation specific contstraints - such as database field length - might dismiss the URL being added. Although implementations should prevent this from happening at all cost, it could happen.
Parameters
string $url_or_path: The URL or path string to register (may already exist).
string[] $tags: Unassociative array with cache tags associated with the URL or path.
Throws
\LogicException Thrown when $tags is empty.
1 method overrides TrafficRegistryInterface::add()
- TrafficRegistry::add in src/
TrafficRegistry.php - Register a new URL or path with its associated cache tags at the registry.
File
- src/
TrafficRegistryInterface.php, line 29
Class
- TrafficRegistryInterface
- Describes a traffic registry with URLs and tags.
Namespace
Drupal\purge_queuer_urlCode
public function add($url_or_path, array $tags);