assignArticleTypes()
public method
Adds new mapping in the theme xml
public assignArticleTypes ( $articleTypes, Theme $theme ) : string |
$articleTypes |
|
an array of mapping new values to old ones
[ oldTypeName => [
name : newTypeName,
ignore : boolean,
fields' : [ OldFieldName : [ name : new/oldType, parentType : existingSysType, ignore : boolean ], [...] ]
]
, [...] ]
parentType => existingSysType will be used for getting it's other props from db |
$theme |
Newscoop\Entity\Theme |
|
return |
string |
the generated xml |