src/NamedLinkFormField.php
public function setForm($form)
    {
        foreach ($this->namedLinkCompositeField->compositeDatabaseFields() as $field => $spec) {
            $fieldHandle = 'field' . $field;
            $this->{$fieldHandle}->setForm($form);
        }
//		$this->fieldPageID->setForm($form);
//		$this->fieldPageAnchor->setForm($form);
//		$this->fieldFileID->setForm($form);
//		$this->fieldCustomURL->setForm($form);
//		$this->fieldShortcode->setForm($form);
//		$this->fieldTitle->setForm($form);
//		$this->fieldLinkmode->setForm($form);

		parent::setForm($form);

        return $this;
	}
public function setForm($form)
    {
        foreach ($this->namedLinkCompositeField->compositeDatabaseFields() as $field => $spec) {
            $fieldHandle = 'field' . $field;
            $this->{$fieldHandle}->setForm($form);
        }
//		$this->fieldPageID->setForm($form);
//		$this->fieldPageAnchor->setForm($form);
//		$this->fieldFileID->setForm($form);
//		$this->fieldCustomURL->setForm($form);
//		$this->fieldShortcode->setForm($form);
//		$this->fieldTitle->setForm($form);
//		$this->fieldLinkmode->setForm($form);

		parent::setForm($form);

        return $this;
	}
public function setForm ( $ form ) { foreach ( $ this -> namedLinkCompositeField -> compositeDatabaseFields ( ) as $ field => $ spec ) { $ fieldHandle = 'field' . $ field ; $ this -> { $ fieldHandle } -> setForm ( $ form ) ; } //		$this->fieldPageID->setForm($form); //		$this->fieldPageAnchor->setForm($form); //		$this->fieldFileID->setForm($form); //		$this->fieldCustomURL->setForm($form); //		$this->fieldShortcode->setForm($form); //		$this->fieldTitle->setForm($form); //		$this->fieldLinkmode->setForm($form); parent :: setForm ( $ form ) ; return $ this ; }
Set the container form.

This is called automatically when fields are added to forms.

@param Form $form

@return $this
Set the container form .