IMPR: Move features from silverstripe-webpack repo

This commit is contained in:
Tony Air 2023-10-25 02:50:00 +02:00
parent da2ffc2a6a
commit 16e9101629

View File

@ -16,6 +16,7 @@ use SilverStripe\Forms\DropdownField;
use SilverStripe\ORM\DataExtension; use SilverStripe\ORM\DataExtension;
use SilverStripe\Forms\FieldList; use SilverStripe\Forms\FieldList;
use A2nt\ElementalBasics\Elements\AccordionElement; use A2nt\ElementalBasics\Elements\AccordionElement;
use SilverStripe\CMS\Model\SiteTree;
/** /**
* Class \A2nt\ElementalBasics\Extensions\ElementRows * Class \A2nt\ElementalBasics\Extensions\ElementRows
@ -267,10 +268,10 @@ class ElementRows extends DataExtension
public function ContainerClass() public function ContainerClass()
{ {
$type = $this->owner->getField('ContainerType'); $type = $this->owner->getField('ContainerType');
$container_styles = array_keys(self::$container_styles); //$container_styles = array_keys(self::$container_styles);
if (!$type && $this->isRoot()) { if (!$type && $this->isRoot()) {
$type = \Page::DefaultContainer(); $type = Config::inst()->get(SiteTree::class, 'default_container_class');
} }
return $type; return $type;