$backendPath =
$this->
getExistingBackendEmotionPath();
if (!\
is_string($backendPath)) { return;
} $directoryIterator =
new DirectoryIterator($backendPath);
$regex =
new RegexIterator($directoryIterator, '/^.+\.js$/i', RecursiveRegexIterator::GET_MATCH
);
foreach ($regex as $file) { $path = 'backend/' .
$file[0
];
$view->
extendsBlock( 'backend/Emotion/app',
PHP_EOL . '{include file="' .
$path . '"}',
'append'
);
} } /**
* Removes the snippets present in the plugin's ini files
* from the database
*
* @param bool $removeDirty if true, the snippets changed by the
* shop owner will also be removed
*/