1getUniqueIdentifier() 2''''''''''''''''''''' 3 4Returns a unique identifier of the element. While element identifiers are only unique within one form, 5this identifier includes also the identifier of the form itself, and therefore making it "globally" unique. 6 7Signature:: 8 9 public function getUniqueIdentifier(): string; 10 11Example: 12 13.. code-block:: yaml 14 15 identifier: exampleForm 16 label: 'Simple Contact Form' 17 prototype: standard 18 type: Form 19 20 renderables: 21 - 22 identifier: page-1 23 label: 'Contact Form' 24 type: Page 25 26 renderables: 27 - 28 identifier: name 29 label: 'Name' 30 type: Text 31 defaultValue: '' 32 33:: 34 35 // $formElement->getIdentifier() == 'name' 36 $uniqueIdentifier = $formElement->getUniqueIdentifier(); 37 // $uniqueIdentifier == 'exampleForm-name' 38