Problem/Motivation
Super-minor bugfix, see MR.
[{
"resource": "/var/www/html/web/modules/custom/asset_injector/asset_injector.module",
"owner": "_generated_diagnostic_collection_name_#1",
"code": "1013",
"severity": 8,
"message": "Undefined method 'libraryNameSuffix'.",
"source": "intelephense",
"startLineNumber": 124,
"startColumn": 74,
"endLineNumber": 124,
"endColumn": 91
}]/** @var \Drupal\Core\Asset\AttachedAssetsInterface $asset */
foreach (asset_injector_get_assets(TRUE) as $asset) {
$attachments['#attached']['library'][] = 'asset_injector/' . $asset->libraryNameSuffix();
$renderer->addCacheableDependency($attachments, $asset);
}
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork asset_injector-3323361
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
anybodyComment #4
grevil commentedLGTM!
Comment #5
anybodyComment #6
anybodyComment #7
geek-merlinAh yes, wrong typehint.
Comment #8
geek-merlinComment #10
geek-merlinThanks a lot!