GridHandler::callFeaturesHook PHP Method

callFeaturesHook() protected method

Call the passed hook in all attached features.
protected callFeaturesHook ( $hookName, $args )
$hookName string
$args array Arguments provided by this handler.
    protected function callFeaturesHook($hookName, $args)
    {
        $features = $this->getFeatures();
        if (is_array($features)) {
            foreach ($features as &$feature) {
                if (is_callable(array($feature, $hookName))) {
                    $feature->{$hookName}($args);
                } else {
                    assert(false);
                }
            }
        }
    }