Improve support for aliased methods.
If a class uses a trait, but aliases a method of the trait,
::aliasedMethodName
to quickly jump to the API page link for the method you are looking for, you will find nothing.One example in 11.x is \Drupal\Tests\BrowserTestBase
, that aliases many methods from traits, e.g. UserCreationTrait::createUser
, is aliased as BrowserTestBase::drupalCreateUser
.
ClassName::aliasedMethodName
. This could either link to the API page for the original method after 2) has been resolved (preferred) or to a separate API page using the aliased method name that mentions that the method is actually an alias of TraitName::originalMethodName
(not ideal, but might be easier to implement and better than nothing).\Namespace\Of\ClassName::aliasedMethodName
to the API page of the original method name. Bonus: Split usages by originalMethodName
and all known aliasedMethodName
s, so that users can immediately see how often the original name and each aliased name is used respectively.ClassName::aliasedMethodName
" in the "Title" column instead of the original name. Similar to 1) this could then either link to the API page of the original method after 2) has been resolved (preferred) or to a separate API page using the aliased method name that mentions that the method is an alias of TraitName::originalMethodName
(not ideal, but might be easier to implement and better than nothing).TraitName::originalName
as ClassName::aliasedMethodName
" in the "Title" column to make it more obvious that this is an aliased method and keep the link to the API page for the original method. This might not be ideal for a11y reasons, though?Make some decisions on the actual UI changes to implement, then provide an MR.
See proposed resolution.
tbd
tbd
Active
2.0
User interface