/** * Sets the input associated to this datalist. * * @param InputInterface $input The input instance */ public function setInput(InputInterface $input) { //Ensure the datalist and input have ids defined $this->id(); $input->id(); //Assign the relation to each other $this->input = $input; $input->setDatalist($this); }
/** * Sets a new input associated to this label. * * @param InputInterface $input The input instance */ public function setInput(InputInterface $input) { //Ensure the label and input have ids defined $this->id(); $input->id(); //Assign the relation to each other $this->input = $input; $input->addLabel($this); }