original_string: private function get_add_element_content($label) {
          global $PAGE, $OUTPUT;
  
          $bs4 = false;
  
          $theme = $PAGE->theme;
          if ($theme->name === 'boost') {
              $bs4 = true;
          } else {
              foreach ($theme->parents as $basetheme) {
                  if ($basetheme === 'boost') {
                      $bs4 = true;
                  }
              }
          }
  
          if (!$bs4) {
              return $label;
          }
          return $OUTPUT->pix_icon('e/insert', $label);
      }
code: private function get_add_element_content($label) {
          global $PAGE, $OUTPUT;
  
          $bs4 = false;
  
          $theme = $PAGE->theme;
          if ($theme->name === 'boost') {
              $bs4 = true;
          } else {
              foreach ($theme->parents as $basetheme) {
                  if ($basetheme === 'boost') {
                      $bs4 = true;
                  }
              }
          }
  
          if (!$bs4) {
              return $label;
          }
          return $OUTPUT->pix_icon('e/insert', $label);
      }
code_tokens: private function get_add_element_content ( $ label ) { global $ PAGE , $ OUTPUT ; $ bs4 = false ; $ theme = $ PAGE -> theme ; if ( $ theme -> name === 'boost' ) { $ bs4 = true ; } else { foreach ( $ theme -> parents as $ basetheme ) { if ( $ basetheme === 'boost' ) { $ bs4 = true ; } } } if ( ! $ bs4 ) { return $ label ; } return $ OUTPUT -> pix_icon ( 'e/insert' , $ label ) ; }
docstring: Returns the 'add' label.
  
  It depends on the theme in use.
  
  @param string $label
  @return \renderable|string
docstring_tokens: Returns the add label .