SteppedCheckout::IsCurrentStep PHP Method

IsCurrentStep() public method

Check if passed action is the same as the current step
public IsCurrentStep ( $name )
    public function IsCurrentStep($name)
    {
        if ($this->owner->getAction() === $name) {
            return true;
        } elseif (!$this->owner->getAction() || $this->owner->getAction() === "index") {
            return $this->actionPos($name) === 0;
        }
        return false;
    }