Link::class, ]; private static $has_many = [ 'HasManyLinks' => Link::class . '.Owner', ]; private static array $owns = [ 'HasOneLink', 'HasManyLinks', ]; private static array $cascade_deletes = [ 'HasOneLink', 'HasManyLinks', ]; private static array $cascade_duplicates = [ 'HasOneLink', 'HasManyLinks', ]; protected function updateCMSFields(FieldList $fields) { $fields->removeByName(['Content']); $fields->addFieldsToTab( 'Root.Main', [ LinkField::create('HasOneLink', 'Single Link') ->setAllowedTypes([ SiteTreeLink::class, EmailLink::class, PhoneLink::class ]), MultiLinkField::create('HasManyLinks', 'Multiple Links'), ], ); } }