original_string: public function add_secondary_action($action) {
          if ($action instanceof action_link || $action instanceof pix_icon) {
              $action->attributes['role'] = 'menuitem';
              if ($action instanceof action_menu_link) {
                  $action->actionmenu = $this;
              }
          }
          $this->secondaryactions[] = $action;
      }
code: public function add_secondary_action($action) {
          if ($action instanceof action_link || $action instanceof pix_icon) {
              $action->attributes['role'] = 'menuitem';
              if ($action instanceof action_menu_link) {
                  $action->actionmenu = $this;
              }
          }
          $this->secondaryactions[] = $action;
      }
code_tokens: public function add_secondary_action ( $ action ) { if ( $ action instanceof action_link || $ action instanceof pix_icon ) { $ action -> attributes [ 'role' ] = 'menuitem' ; if ( $ action instanceof action_menu_link ) { $ action -> actionmenu = $ this ; } } $ this -> secondaryactions [ ] = $ action ; }
docstring: Adds a secondary action to the action menu.
  
  @param action_link|pix_icon|string $action
docstring_tokens: Adds a secondary action to the action menu .