We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 659870c commit c312212Copy full SHA for c312212
1 file changed
code/DataObjects/Module.php
@@ -41,6 +41,17 @@ public function Type(){
41
return $this->singular_name();
42
}
43
44
+ /**
45
+ * Convert our type into an escaped string for construcing classes
46
+ * @return string
47
+ **/
48
+ public function TypeEscaped(){
49
+ $type = $this->Type();
50
+ $type = str_replace(' ','_',$type);
51
+ $type = strtolower($type);
52
+ return $type;
53
+ }
54
+
55
/**
56
* Identify this page component type
57
* Used in GridField for type identification
0 commit comments