fieldByName('Editor'); if (!$tabset) { return; } $class = UsedOnTable::class; Deprecation::notice('5.0', "Use the $class to show this table"); /** @var File|SiteTreeFileExtension|RecursivePublishable $record */ $record = $context['Record']; $usedOnField = UsedOnTable::create('UsedOnTableReplacement'); // Add field to new tab /** @var Tab $tab */ $tab = Tab::create('Usage', _t(__CLASS__ . '.USAGE', 'Usage'), $usedOnField); $tabset->push($tab); } }