Method | Description | |
---|---|---|
createEntityDefinition ( string $table, array $fields, string $label, array $localeLabels, array $standardFieldLabels, |
Creates an EntityDefinition instance. |
public createEntityDefinition ( string $table, array $fields, string $label, array $localeLabels, array $standardFieldLabels, |
||
$table | string | the table of the entity |
$fields | array | the fieldstructure just like the CRUD YAML |
$label | string | the label of the entity |
$localeLabels | array | the labels of the entity in the locales |
$standardFieldLabels | array | labels for the fields "id", "created_at" and "updated_at" |
$serviceProvider | The current service provider | |
return | the new instance |