Syntaxhighlight: Unterschied zwischen den Versionen

Aus mw139
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „== python ==“)
Markierung: Ersetzt
Zeile 1: Zeile 1:
== python ==
== python ==
‎<syntaxhighlight lang="python" line>
def quick_sort(arr):
less = []
pivot_list = []
more = []
if len(arr) <= 1:
return arr
else:
pass
‎</syntaxhighlight>
== php ==
use Drupal\sxt_mediawiki\SxtMediawiki;
use Drupal\node\NodeInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_FORM_ID_alter().
*/
function sxt_mediawiki_form_field_config_edit_form_alter(array &$form, FormStateInterface $form_state) {
  SxtMediawiki::configEditFormAlter($form, $form_state);
}
/**
* Implements hook_form_FORM_ID_alter() for node entities.
*/
function sxt_mediawiki_form_node_form_alter(array &$form, FormStateInterface $form_state) {
  SxtMediawiki::nodeFormAlter($form, $form_state);
}
== json ==
{
    "state": "xtwf_collect_content",
    "league": 0,
    "workflow": "xxtwig01",
    "severity": "leight",
    "data": {
        "finalize_by_timeout": false,
        "finalize_strict": false,
        "started": 1610286511,
        "changed": 1610286805,
        "user_data": {
            "1": {
                "129": {
                    "nid": "2505",
                    "shared": 0
                },
                "last_sid": "129",
                "shared": 0
            }
        },
        "state_data": {
            "base-tid": "111",
            "draft-tid": "112",
            "shared-tid": "113",
        },
        "jsmeta_data": {
            "contribution": {
                "type": "openDialog",
                "fullPath": "sxt_opentalk\/xtajx\/collaborate\/c\/1092\/workflow\/ccollect\/{action}"
            }
        },
        "workflow_parents": {
            "twig": "xxtrunkb01:xtwf_run_twig__twig1"
        }
    },
    "expire": 1611150511
}

Version vom 24. Juni 2022, 20:10 Uhr

python