92f557974f2a2574c989f1351def3a1439e7ae54
[yaffs-website] / web / modules / contrib / ctools / src / Wizard / EntityFormWizardInterface.php
1 <?php
2
3 namespace Drupal\ctools\Wizard;
4
5 /**
6  * Form wizard interface for use with entities.
7  */
8 interface EntityFormWizardInterface extends FormWizardInterface {
9
10   /**
11    * The fieldset #title for your label & machine name elements.
12    *
13    * @return string
14    */
15   public function getWizardLabel();
16
17   /**
18    * The form element #title for your unique identifier label.
19    *
20    * @return string
21    */
22   public function getMachineLabel();
23
24   /**
25    * The machine name of the entity type.
26    *
27    * @return string
28    */
29   public function getEntityType();
30
31   /**
32    * A method for determining if this entity already exists.
33    *
34    * @return callable
35    *   The callable to pass the id to via typical machine_name form element.
36    */
37   public function exists();
38
39 }