API Use setTitleField to use MenuTitle for selecting internal links

This commit is contained in:
Damian Mooyman 2017-07-26 18:15:15 +12:00
parent 99b2d9842a
commit 3364f5c52b
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -23,7 +23,7 @@ class InternalLinkFormFactory extends LinkFormFactory
SiteTree::class,
'ID',
'TreeTitle'
),
)->setTitleField('MenuTitle'),
TextField::create(
'Description',
_t(__CLASS__.'.LINKDESCR', 'Link description')