PHP Interface CRUDlex\EntityDefinitionFactoryInterface

Show file Open project: philiplb/crudlex

Public Methods

Method Description
createEntityDefinition ( string $table, array $fields, string $label, array $localeLabels, array $standardFieldLabels, ServiceProvider $serviceProvider ) : EntityDefinition Creates an EntityDefinition instance.

Method Details

createEntityDefinition() public method

Creates an EntityDefinition instance.
public createEntityDefinition ( string $table, array $fields, string $label, array $localeLabels, array $standardFieldLabels, ServiceProvider $serviceProvider ) : EntityDefinition
$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 ServiceProvider The current service provider
return EntityDefinition the new instance