public function WebformUiElementFormBase::isNew in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_ui/src/Form/WebformUiElementFormBase.php \Drupal\webform_ui\Form\WebformUiElementFormBase::isNew()
Is new element.
Return value
bool TRUE if this webform generating a new element.
Overrides WebformUiElementFormInterface::isNew
2 calls to WebformUiElementFormBase::isNew()
- WebformUiElementFormBase::buildForm in modules/
webform_ui/ src/ Form/ WebformUiElementFormBase.php - Form constructor.
- WebformUiElementFormBase::validateForm in modules/
webform_ui/ src/ Form/ WebformUiElementFormBase.php - Form validation handler.
File
- modules/
webform_ui/ src/ Form/ WebformUiElementFormBase.php, line 485
Class
- WebformUiElementFormBase
- Provides a base class for webform element webforms.
Namespace
Drupal\webform_ui\FormCode
public function isNew() {
return $this instanceof WebformUiElementAddForm ? TRUE : FALSE;
}