src/Forms/FormField.php
public function Link($action = null)
    {
        if (!$this->form) {
            throw new LogicException(
                'Field must be associated with a form to call Link(). Please use $field->setForm($form);'
            );
        }

        $link = Controller::join_links($this->form->FormAction(), 'field/' . $this->name, $action);
        $this->extend('updateLink', $link, $action);
        return $link;
    }
public function Link($action = null)
    {
        if (!$this->form) {
            throw new LogicException(
                'Field must be associated with a form to call Link(). Please use $field->setForm($form);'
            );
        }

        $link = Controller::join_links($this->form->FormAction(), 'field/' . $this->name, $action);
        $this->extend('updateLink', $link, $action);
        return $link;
    }
public function Link ( $ action = null ) { if ( ! $ this -> form ) { throw new LogicException ( 'Field must be associated with a form to call Link(). Please use $field->setForm($form);' ) ; } $ link = Controller :: join_links ( $ this -> form -> FormAction ( ) , 'field/' . $ this -> name , $ action ) ; $ this -> extend ( 'updateLink' , $ link , $ action ) ; return $ link ; }
Return a link to this field

@param string $action
@return string
@throws LogicException If no form is set yet
Return a link to this field