public function prepareEntity($attributes)
    {
        $this->fieldAliases  = [];
        $attributes['class'] = $attributes['name'];
        $attributes['name']  = preg_replace('~^.*?(\w+)$~', '\1', $attributes['class']);
        $this->prefix        = 'COM_' . strtoupper($attributes['name']) . '_FIELD_';

        return $attributes;
    }
public function prepareEntity($attributes)
    {
        $this->fieldAliases  = [];
        $attributes['class'] = $attributes['name'];
        $attributes['name']  = preg_replace('~^.*?(\w+)$~', '\1', $attributes['class']);
        $this->prefix        = 'COM_' . strtoupper($attributes['name']) . '_FIELD_';

        return $attributes;
    }
public function prepareEntity ( $ attributes ) { $ this -> fieldAliases = [ ] ; $ attributes [ 'class' ] = $ attributes [ 'name' ] ; $ attributes [ 'name' ] = preg_replace ( '~^.*?(\w+)$~' , '\1' , $ attributes [ 'class' ] ) ; $ this -> prefix = 'COM_' . strtoupper ( $ attributes [ 'name' ] ) . '_FIELD_' ; return $ attributes ; }
Parser callback for onBeforeEntity event

@internal

@param   array $attributes The element attributes

@return  array
Parser callback for onBeforeEntity event