mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
27 lines
629 B
PHP
27 lines
629 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
namespace A2nt\CMSNiceties\Extensions;
|
||
|
|
||
|
use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
|
||
|
use SilverStripe\Core\Extension;
|
||
|
use SilverStripe\Forms\CompositeField;
|
||
|
use SilverStripe\Forms\FieldList;
|
||
|
use SilverStripe\ORM\DataExtension;
|
||
|
|
||
|
class CompositeFieldExtension extends CompositeField
|
||
|
{
|
||
|
public function extraClass()
|
||
|
{
|
||
|
return 'composite '.parent::extraClass();
|
||
|
}
|
||
|
|
||
|
public function getAttributes()
|
||
|
{
|
||
|
$attrs = parent::getAttributes();
|
||
|
unset($attrs['name'], $attrs['type'], $attrs['disabled'], $attrs['readonly'], $attrs['autofocus']);
|
||
|
|
||
|
return $attrs;
|
||
|
}
|
||
|
}
|