[TASK] EXT:form - set identifier for renderables 76/52076/2
authorRalf Zimmermann <ralf.zimmermann@tritum.de>
Fri, 17 Mar 2017 10:47:19 +0000 (11:47 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 17 Mar 2017 19:32:18 +0000 (20:32 +0100)
Add method for setting the identifier for renderables.

Resolves: #80319
Releases: master
Change-Id: I9103068aef1b71eb86e589ddb7d107d7a738621e
Reviewed-on: https://review.typo3.org/52076
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Martin Kutschker <martin.kutschker@ymail.com>
Tested-by: Martin Kutschker <martin.kutschker@ymail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractRenderable.php

index 4a1eb9f..9aa876d 100644 (file)
@@ -111,6 +111,18 @@ abstract class AbstractRenderable implements RenderableInterface
     }
 
     /**
+     * Set the identifier of the element
+     *
+     * @param string $identifier
+     * @return void
+     * @api
+     */
+    public function setIdentifier(string $identifier)
+    {
+        $this->identifier = $identifier;
+    }
+
+    /**
      * Set multiple properties of this object at once.
      * Every property which has a corresponding set* method can be set using
      * the passed $options array.