page.php
public function getFormByImage($selector)
    {
        for ($i = 0; $i < count($this->forms); $i++) {
            if ($this->forms[$i]->hasImage($selector)) {
                return $this->forms[$i];
            }
        }

        return;
    }
public function getFormByImage($selector)
    {
        for ($i = 0; $i < count($this->forms); $i++) {
            if ($this->forms[$i]->hasImage($selector)) {
                return $this->forms[$i];
            }
        }

        return;
    }
Finds a held form by image using a selector. Will only search correctly built forms.

@param  SelectorInterface $selector  Image finder.

@return SimpleForm               Form object containing the image.