Skip to content

Commit

Permalink
API Make LinkFieldController a subclass of FormSchemaController
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 12, 2024
1 parent 06636c4 commit bc92ed1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Controllers/LinkFieldController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SilverStripe\LinkField\Controllers;

use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Admin\FormSchemaController;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Forms\DefaultFormFactory;
use SilverStripe\Forms\Form;
Expand All @@ -25,14 +25,12 @@
use SilverStripe\ORM\Queries\SQLUpdate;
use SilverStripe\Versioned\Versioned;

class LinkFieldController extends LeftAndMain
class LinkFieldController extends FormSchemaController
{
public const FORM_NAME_TEMPLATE = 'LinkForm_%s';

private static string $url_segment = 'linkfield';

private static $ignore_menuitem = true;

private static array $url_handlers = [
'linkForm/$ItemID' => 'linkForm',
'GET data/$ItemID' => 'linkData',
Expand Down

0 comments on commit bc92ed1

Please sign in to comment.