public function YamlForm::deleteYamlFormHandler in YAML Form 8
Deletes a form handler from this style.
Parameters
\Drupal\yamlform\YamlFormHandlerInterface $effect: The form handler object.
Return value
$this
Overrides YamlFormInterface::deleteYamlFormHandler
1 call to YamlForm::deleteYamlFormHandler()
- YamlForm::onDependencyRemoval in src/
Entity/ YamlForm.php - Informs the entity that entities it depends on will be deleted.
File
- src/
Entity/ YamlForm.php, line 1272
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public function deleteYamlFormHandler(YamlFormHandlerInterface $handler) {
$this
->getHandlers()
->removeInstanceId($handler
->getHandlerId());
$this
->save();
return $this;
}