Repository navigation
Conversation
This was referenced Nov 27, 2026
This was referenced Nov 27, 2026
sgiehl
force-pushed
the
api-tags-tracking
branch
3 times, most recently
from
December 1, 2026 18:32
1183cca to
fe53f24
Compare
sgiehl
force-pushed
the
api-tags-tracking
branch
from
December 1, 2026 18:43
fe53f24 to
602dcfb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Tags the tracker extension points and the request and visit accessors they need:
Tracker\RequestProcessor(class level, including its six public hooks): no event covers per-request processing, custom log writes or exchanging request metadata between plugins. The class docblock now links the hooks, so they show up in the reference.Tracker\LogTable(class level): needed to make custom log tables segmentable and joinable.Plugin::isTrackerPlugin(): it was@internal, but its docblock tells plugins to override it.Tracker\Request:getParams(),getParam(),setParam()(documented as forRequestProcessor::manipulateRequest()only),getIdSite(),getCurrentTimestamp(),getIpString(),getUserAgent(),getMetadata(),setMetadata(). Request objects are passed to public tracker events and@apidimension hooks.VisitProperties::getProperty()/setProperty()andVisitor::getVisitorColumn().Action::TYPE_*(the complete set oflog_action.typevalues; not the aliasesTYPE_EVENT/TYPE_CONTENT) andGoalManager::IDGOAL_ORDER/IDGOAL_CART.Tracker\Cache::getCacheWebsiteAttributes()/deleteCacheWebsiteAttributes(): the read and invalidation side of theTracker.Cache.getSiteAttributesevent, which the caching guide tells plugins to call. An injectable tracker cache service is planned to replace these statics later.Extending
Tracker\Actionstays untagged.Context
Plugins not shipped with core may only rely on code tagged
@api, but many classes and hooks they need were never tagged. That includes the protected hooks of@apibase classes, which the developer reference only lists when they carry their own@apitag. This series tags what plugins outside core actually use (based on an analysis of 197 Marketplace and other non-bundled plugins) and what we can keep stable until the next major release.Deliberately not tagged:
@apicode already covers;Config::getInstance(),Plugin\Manager::getInstance(), thePiwik\Cachestatics, …). Those get DI follow-ups instead.All changes are docblocks only:
@api/@internaltags, plus docblocks completed to the public API standard (purpose, parameters, return values, how plugins use it). No code, signatures or behaviour change.Series (merge order)
ContainerDI follow-up)This PR: #25863. Each PR adds its own line under 6.1.0 "New APIs" in the CHANGELOG, so later PRs get rebased as earlier ones merge.
Tests
Docblock-only change, so there are no new tests. For each PR:
phpcsis clean on the changed files;The series was also merged together and checked as a whole: PHPStan is clean, and the only conflicts are the adjacent CHANGELOG lines. The developer-documentation API reference was generated locally from the combined branches to check the new pages and
{@link}s.Checklist
Review