original_string: public function renderToolbar()
      {
          if ($this->toolbarOptions === self::TOOLBAR_BASIC) {
              return [
                  [
                      'bold',
                      'italic',
                      'underline',
                      'strike',
                  ],
                  [
                      ['list' => 'ordered'],
                      ['list' => 'bullet'],
                  ],
                  [
                      ['align' => []],
                  ],
                  [
                      'link',
                  ],
              ];
          }
  
          if ($this->toolbarOptions === self::TOOLBAR_FULL) {
              return [
                  [
                      ['font' => []],
                      [
                          'size' => [
                              'small',
                              false,
                              'large',
                              'huge',
                          ],
                      ],
                  ],
                  [
                      'bold',
                      'italic',
                      'underline',
                      'strike',
                  ],
                  [
                      ['color' => []],
                      ['background' => []],
                  ],
                  [
                      ['script' => 'sub'],
                      ['script' => 'super'],
                  ],
                  [
                      ['header' => 1],
                      ['header' => 2],
                      'blockquote',
                      'code-block',
                  ],
                  [
                      ['list' => 'ordered'],
                      ['list' => 'bullet'],
                      ['indent' => '-1'],
                      ['indent' => '+1'],
                  ],
                  [
                      ['direction' => 'rtl'],
                      ['align' => []],
                  ],
                  [
                      'link',
                      'image',
                      'video',
                  ],
                  [
                      'clean',
                  ],
              ];
          }
  
          return $this->toolbarOptions;
      }
code: public function renderToolbar()
      {
          if ($this->toolbarOptions === self::TOOLBAR_BASIC) {
              return [
                  [
                      'bold',
                      'italic',
                      'underline',
                      'strike',
                  ],
                  [
                      ['list' => 'ordered'],
                      ['list' => 'bullet'],
                  ],
                  [
                      ['align' => []],
                  ],
                  [
                      'link',
                  ],
              ];
          }
  
          if ($this->toolbarOptions === self::TOOLBAR_FULL) {
              return [
                  [
                      ['font' => []],
                      [
                          'size' => [
                              'small',
                              false,
                              'large',
                              'huge',
                          ],
                      ],
                  ],
                  [
                      'bold',
                      'italic',
                      'underline',
                      'strike',
                  ],
                  [
                      ['color' => []],
                      ['background' => []],
                  ],
                  [
                      ['script' => 'sub'],
                      ['script' => 'super'],
                  ],
                  [
                      ['header' => 1],
                      ['header' => 2],
                      'blockquote',
                      'code-block',
                  ],
                  [
                      ['list' => 'ordered'],
                      ['list' => 'bullet'],
                      ['indent' => '-1'],
                      ['indent' => '+1'],
                  ],
                  [
                      ['direction' => 'rtl'],
                      ['align' => []],
                  ],
                  [
                      'link',
                      'image',
                      'video',
                  ],
                  [
                      'clean',
                  ],
              ];
          }
  
          return $this->toolbarOptions;
      }
code_tokens: public function renderToolbar ( ) { if ( $ this -> toolbarOptions === self :: TOOLBAR_BASIC ) { return [ [ 'bold' , 'italic' , 'underline' , 'strike' , ] , [ [ 'list' => 'ordered' ] , [ 'list' => 'bullet' ] , ] , [ [ 'align' => [ ] ] , ] , [ 'link' , ] , ] ; } if ( $ this -> toolbarOptions === self :: TOOLBAR_FULL ) { return [ [ [ 'font' => [ ] ] , [ 'size' => [ 'small' , false , 'large' , 'huge' , ] , ] , ] , [ 'bold' , 'italic' , 'underline' , 'strike' , ] , [ [ 'color' => [ ] ] , [ 'background' => [ ] ] , ] , [ [ 'script' => 'sub' ] , [ 'script' => 'super' ] , ] , [ [ 'header' => 1 ] , [ 'header' => 2 ] , 'blockquote' , 'code-block' , ] , [ [ 'list' => 'ordered' ] , [ 'list' => 'bullet' ] , [ 'indent' => '-1' ] , [ 'indent' => '+1' ] , ] , [ [ 'direction' => 'rtl' ] , [ 'align' => [ ] ] , ] , [ 'link' , 'image' , 'video' , ] , [ 'clean' , ] , ] ; } return $ this -> toolbarOptions ; }
docstring: Prepares predefined set of buttons.
  @return bool|array
docstring_tokens: Prepares predefined set of buttons .