function ga_push_get_methods in GA Push 8
Same name and namespace in other branches
- 7 ga_push.module \ga_push_get_methods()
Get all GA Push methods.
3 calls to ga_push_get_methods()
- ga_push_get_method in ./
ga_push.module - Get GA Push method info.
- ga_push_get_methods_option_list in ./
ga_push.module - Returns all available methods as option list.
- ga_push_method_available in ./
ga_push.module - Check if a GA PUSH method is available.
File
- ./
ga_push.module, line 566 - Drupal Module: GA Push.
Code
function ga_push_get_methods() {
static $callbacks = [];
if (!count($callbacks)) {
$implementations = Drupal::moduleHandler()
->getImplementations('ga_push_method');
foreach ($implementations as $module) {
$router_items = call_user_func($module . '_ga_push_method');
if (isset($router_items) && is_array($router_items)) {
foreach (array_keys($router_items) as $method) {
$router_items[$method]['module'] = $module;
}
$callbacks = array_merge($callbacks, $router_items);
}
}
}
return $callbacks;
}