Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The information returned by this hook should be relevant to the library info being returned. Array keys name, vendor url, download url and version are all incorrect.
function theme_utils_libraries_info() {
return array(
'php-css-parser' => array(
'name' => 'My test library',
'vendor url' => 'http://www.example.com',
'download url' => 'http://github.com/example/my-php-api',
'version' => '1.0',
'xautoload' => function($api) {
$api->namespaceRoot('Sabberworm\CSS', 'lib');
},
),
);
}
Comments
Comment #1
rrrob CreditAttribution: rrrob commentedThanks for the report ELC. This has been fixed to include the relevant information.