original_string: public static function get_store_plugin_actions($name, array $plugindetails) {
          $actions = array();
          if (has_capability('moodle/site:config', context_system::instance())) {
              if (!empty($plugindetails['canaddinstance'])) {
                  $url = new moodle_url('/cache/admin.php', array('action' => 'addstore', 'plugin' => $name, 'sesskey' => sesskey()));
                  $actions[] = array(
                      'text' => get_string('addinstance', 'cache'),
                      'url' => $url
                  );
              }
          }
          return $actions;
      }
code: public static function get_store_plugin_actions($name, array $plugindetails) {
          $actions = array();
          if (has_capability('moodle/site:config', context_system::instance())) {
              if (!empty($plugindetails['canaddinstance'])) {
                  $url = new moodle_url('/cache/admin.php', array('action' => 'addstore', 'plugin' => $name, 'sesskey' => sesskey()));
                  $actions[] = array(
                      'text' => get_string('addinstance', 'cache'),
                      'url' => $url
                  );
              }
          }
          return $actions;
      }
code_tokens: public static function get_store_plugin_actions ( $ name , array $ plugindetails ) { $ actions = array ( ) ; if ( has_capability ( 'moodle/site:config' , context_system :: instance ( ) ) ) { if ( ! empty ( $ plugindetails [ 'canaddinstance' ] ) ) { $ url = new moodle_url ( '/cache/admin.php' , array ( 'action' => 'addstore' , 'plugin' => $ name , 'sesskey' => sesskey ( ) ) ) ; $ actions [ ] = array ( 'text' => get_string ( 'addinstance' , 'cache' ) , 'url' => $ url ) ; } } return $ actions ; }
docstring: Returns all of the actions that can be performed on a plugin.
  
  @param string $name The name of the plugin
  @param array $plugindetails
  @return array
docstring_tokens: Returns all of the actions that can be performed on a plugin .