public function attachmentsArea(EntityInterface $entity, array $options = [])
    {
        if ($this->config('includeDependencies')) {
            $this->addDependencies();
        }
        $options = Hash::merge([
            'label' => false,
            'id' => 'fileupload-' . uniqid(),
            'formFieldName' => false,
            'mode' => 'full',
            'style' => '',
            'taggable' => false,
            'isAjax' => false,
            'panelHeading' => __d('attachments', 'attachments'),
            'showIconColumn' => true,
            'additionalButtons' => null
        ], $options);
        return $this->_View->element('Attachments.attachments_area', compact('options', 'entity'));
    }
public function attachmentsArea(EntityInterface $entity, array $options = [])
    {
        if ($this->config('includeDependencies')) {
            $this->addDependencies();
        }
        $options = Hash::merge([
            'label' => false,
            'id' => 'fileupload-' . uniqid(),
            'formFieldName' => false,
            'mode' => 'full',
            'style' => '',
            'taggable' => false,
            'isAjax' => false,
            'panelHeading' => __d('attachments', 'attachments'),
            'showIconColumn' => true,
            'additionalButtons' => null
        ], $options);
        return $this->_View->element('Attachments.attachments_area', compact('options', 'entity'));
    }
public function attachmentsArea ( EntityInterface $ entity , array $ options = [ ] ) { if ( $ this -> config ( 'includeDependencies' ) ) { $ this -> addDependencies ( ) ; } $ options = Hash :: merge ( [ 'label' => false , 'id' => 'fileupload-' . uniqid ( ) , 'formFieldName' => false , 'mode' => 'full' , 'style' => '' , 'taggable' => false , 'isAjax' => false , 'panelHeading' => __d ( 'attachments' , 'attachments' ) , 'showIconColumn' => true , 'additionalButtons' => null ] , $ options ) ; return $ this -> _View -> element ( 'Attachments.attachments_area' , compact ( 'options' , 'entity' ) ) ; }
Render an attachments area for the given entity

@param EntityInterface $entity Entity to attach files to
@param array $options Override default options
@return string
Render an attachments area for the given entity