CodeExplorer setInternalName example
foreach (array_keys($types) as $type) { $this->fields
[$type . '-field'
] = TypeField::
class;
$this->fields
[$type . '-grid'
] = TypeGrid::
class;
} } public function createType(string
$name, array
$type): Type
{ $class =
new Type();
$class->
setName($type['name'
]);
$class->
setInternalName($name);
if (isset($type['source'
])) { $class->
setSource($type['source'
]);
} if (isset($type['showInFrontend'
])) { $class->
setShowInFrontend($type['showInFrontend'
]);
} if (isset($type['menuIcon'
])) { $class->
setMenuIcon($type['menuIcon'
]);
}