Bundle/CoreBundle/Annotations/BusinessEntity.php
public function getWidgets()
    {
        if ($this->widgets === null || !array_key_exists('value', $this->widgets)) {
            return;
        }

        //return an array, no matter one or many widget defined
        if (count($this->widgets['value']) > 1) {
            return $this->widgets['value'];
        } else {
            return [$this->widgets['value']];
        }
    }
public function getWidgets()
    {
        if ($this->widgets === null || !array_key_exists('value', $this->widgets)) {
            return;
        }

        //return an array, no matter one or many widget defined
        if (count($this->widgets['value']) > 1) {
            return $this->widgets['value'];
        } else {
            return [$this->widgets['value']];
        }
    }
public function getWidgets ( ) { if ( $ this -> widgets === null || ! array_key_exists ( 'value' , $ this -> widgets ) ) { return ; } //return an array, no matter one or many widget defined if ( count ( $ this -> widgets [ 'value' ] ) > 1 ) { return $ this -> widgets [ 'value' ] ; } else { return [ $ this -> widgets [ 'value' ] ] ; } }
Get widgets associated to this businessEntity.

@return null|array
Get widgets associated to this businessEntity .