src/Shell/PurifierShell.php
protected function _loadBehavior(Table $table, $fields)
    {
        if (!in_array('HtmlPurifier', $table->behaviors()->loaded())) {
            $table->addBehavior('Burzum/HtmlPurifier.HtmlPurifier', [
                'fields' => $fields,
                'purifierConfig' => $this->param('config')
            ]);
        }
    }
protected function _loadBehavior(Table $table, $fields)
    {
        if (!in_array('HtmlPurifier', $table->behaviors()->loaded())) {
            $table->addBehavior('Burzum/HtmlPurifier.HtmlPurifier', [
                'fields' => $fields,
                'purifierConfig' => $this->param('config')
            ]);
        }
    }
protected function _loadBehavior ( Table $ table , $ fields ) { if ( ! in_array ( 'HtmlPurifier' , $ table -> behaviors ( ) -> loaded ( ) ) ) { $ table -> addBehavior ( 'Burzum/HtmlPurifier.HtmlPurifier' , [ 'fields' => $ fields , 'purifierConfig' => $ this -> param ( 'config' ) ] ) ; } }
Loads the purifier behavior for the given table if not already attached.

@param \Cake\ORM\Table $table Table object.
@param array Set of fields to sanitize
@return void
Loads the purifier behavior for the given table if not already attached .