src/Netzmacht/Bootstrap/Buttons/ChildAware.php
public function eachChild($callback)
    {
        foreach ($this->children as $child) {
            call_user_func($callback, $child);
        }

        return $this;
    }
public function eachChild($callback)
    {
        foreach ($this->children as $child) {
            call_user_func($callback, $child);
        }

        return $this;
    }
public function eachChild ( $ callback ) { foreach ( $ this -> children as $ child ) { call_user_func ( $ callback , $ child ) ; } return $ this ; }
Run a callback for each child.

@param \Callable $callback Callback which accepts the child as argument.

@return $this
Run a callback for each child .