FIX Check that elemental is installed

This commit is contained in:
Steve Boyd 2024-06-21 17:28:27 +12:00
parent 3bbd075584
commit b63af3c79e

View File

@ -7,6 +7,10 @@ use SilverStripe\Forms\SearchableDropdownField;
use SilverStripe\Forms\SearchableMultiDropdownField; use SilverStripe\Forms\SearchableMultiDropdownField;
use SilverStripe\FrameworkTest\Model\Company; use SilverStripe\FrameworkTest\Model\Company;
if (!class_exists(BaseElement::class)) {
return;
}
class ElementalSearchableFieldsBlock extends BaseElement class ElementalSearchableFieldsBlock extends BaseElement
{ {
private static $table_name = 'ElementalSearchableFieldsBlock'; private static $table_name = 'ElementalSearchableFieldsBlock';