diff --git a/code/Company.php b/code/Company.php index c082b58..552f6b2 100644 --- a/code/Company.php +++ b/code/Company.php @@ -368,4 +368,15 @@ public function scaffoldSearchField() return DropdownField::create('CompanyID', 'Company', Company::get()->map())->setEmptyString(''); } + public function getStatusFlags(bool $cached = true): array + { + $this->beforeExtending('updateStatusFlags', function (array &$flags) { + $flags['company-status-flag1'] = 'string-flag'; + $flags['company-status-flag2'] = [ + 'title' => 'a flag with a title', + 'text' => 'array-flag', + ]; + }); + return parent::getStatusFlags($cached); + } }