public function Mock::moduleInvokeAll in Realistic Dummy Content 7.2
Same name and namespace in other branches
- 8.2 api/src/Framework/Mock.php \Drupal\realistic_dummy_content_api\Framework\Mock::moduleInvokeAll()
File
- api/
src/ Framework/ Mock.php, line 38
Class
- Mock
- Represents a mock framework (experimental).
Namespace
Drupal\realistic_dummy_content_api\FrameworkCode
public function moduleInvokeAll($hook) {
$args = func_get_args();
$hook = array_shift($args);
$this
->print('[info] About to let all modules apply hook ' . $hook . ' with arguments ' . serialize($args));
if (function_exists('realistic_dummy_content_api_' . $hook)) {
call_user_func_array('realistic_dummy_content_api_' . $hook, $args);
}
}