public function BrowserScriptTrait::extensions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/jcalderonzumba/gastonjs/src/Browser/BrowserScriptTrait.php \Zumba\GastonJS\Browser\BrowserScriptTrait::extensions()
Add desired extensions to phantomjs
Parameters
$extensions:
Return value
bool
File
- vendor/
jcalderonzumba/ gastonjs/ src/ Browser/ BrowserScriptTrait.php, line 33
Class
- BrowserScriptTrait
- Trait BrowserScriptTrait @package Zumba\GastonJS\Browser
Namespace
Zumba\GastonJS\BrowserCode
public function extensions($extensions) {
//TODO: add error control for when extensions do not exist physically
foreach ($extensions as $extensionName) {
$this
->command('add_extension', $extensionName);
}
return true;
}