original_string: public function getWidgetTypes()
      {
          $types = &gplcart_static('field.widget.types');
  
          if (isset($types)) {
              return $types;
          }
  
          $types = array(
              'button' => $this->translation->text('Button'),
              'radio' => $this->translation->text('Radio buttons'),
              'select' => $this->translation->text('Dropdown list')
          );
  
          $this->hook->attach('field.widget.types', $types, $this);
          return $types;
      }
code: public function getWidgetTypes()
      {
          $types = &gplcart_static('field.widget.types');
  
          if (isset($types)) {
              return $types;
          }
  
          $types = array(
              'button' => $this->translation->text('Button'),
              'radio' => $this->translation->text('Radio buttons'),
              'select' => $this->translation->text('Dropdown list')
          );
  
          $this->hook->attach('field.widget.types', $types, $this);
          return $types;
      }
code_tokens: public function getWidgetTypes ( ) { $ types = & gplcart_static ( 'field.widget.types' ) ; if ( isset ( $ types ) ) { return $ types ; } $ types = array ( 'button' => $ this -> translation -> text ( 'Button' ) , 'radio' => $ this -> translation -> text ( 'Radio buttons' ) , 'select' => $ this -> translation -> text ( 'Dropdown list' ) ) ; $ this -> hook -> attach ( 'field.widget.types' , $ types , $ this ) ; return $ types ; }
docstring: Returns an array of widget types
  @return array
docstring_tokens: Returns an array of widget types