Skip to content
Snippets Groups Projects
Unverified Commit 42ff4f6c authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #19546 from colemanw/labelField

APIv4 - Fix label_field to use underscore instead of camelCase
parents 7f8ae733 b441e024
Branches
Tags
No related merge requests found
......@@ -85,7 +85,7 @@ class Entity extends Generic\AbstractEntity {
'description' => 'Class name for dao-based entities',
],
[
'name' => 'labelField',
'name' => 'label_field',
'description' => 'Field to show when displaying a record',
],
[
......
......@@ -143,7 +143,7 @@ abstract class AbstractEntity {
if ($dao) {
$info['paths'] = $dao::getEntityPaths();
$info['icon'] = $dao::$_icon;
$info['labelField'] = $dao::$_labelField;
$info['label_field'] = $dao::$_labelField;
$info['dao'] = $dao;
}
foreach (ReflectionUtils::getTraits(static::class) as $trait) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment