public function Dummy::search in Libraries CDN API 7
Perform a search for a library.
Return value
array The resulting array.
Overrides CDNBase::search
File
- modules/
libraries_cdn_example_plugin/ src/ Plugin/ LibrariesCDN/ Dummy.php, line 71 - Plugin: jsDelivr.
Class
- Dummy
- Class Dummy.
Namespace
Drupal\libraries_cdn_example_plugin\Plugin\LibrariesCDNCode
public function search($library) {
$this
->setLibrary($library);
return array(
0 => array(
'name' => drupal_html_class(drupal_clean_css_identifier($library)),
),
);
}