Source of file SEOToolboxAdmin.php
Size: 0,778 Bytes - Last Modified: 2021-12-24T06:45:30+00:00
/var/www/docs.ssmods.com/process/src/code/admin/SEOToolboxAdmin.php
12345678910111213141516171819202122232425262728 | <?php /** * Plugin: SEOToolbox * Author: Dylan Grech * Copyright: 2016 * * SEO Tool box Admin is a model admin used to control * all the automated links and automated link global settings * for this site */ class SEOToolboxAdmin extends ModelAdmin{ private static $menu_title = 'SEO Tool box'; private static $url_segment = 'seo-tool-box'; private static $managed_models = array( 'AutomatedLink' ); private static $menu_priority = 10; public function getEditForm($id = null, $fields = null) { $form = parent::getEditForm( $id, $fields ); $class = $this->sanitiseClassName($this->modelClass); $grid = $form->Fields()->fieldByName($class); $grid->getConfig()->addComponent( new GridFieldSortableRows( 'Priority' ) ); return $form; } } |