ContentModuleRelationshipEditor::create_table_field
Wraps creating a table field, if using ContentModuleField it will return a ContentModuleRelationshipEditor Otherwise returns a GridField
This is mainly for backwards compatibility while transitioning to Visual Editor
Signature
public function create_table_field(
$name,
[null
$title = NULL,
[null
$relationship = NULL,
[null
$record = NULL,
[array
$options = ]]]] )
Parameters
$name
—$title
— null$relationship
— null$record
— null$options
— array- Key value pairs of options [sortField, showAdd, showAddExisting, showDelete]
Returns
- static|GridField