getArgumentText example


  public static function trustedCallbacks() {
    $callbacks = parent::trustedCallbacks();
    $callbacks[] = 'preRenderMoveArgumentOptions';
    return $callbacks;
  }

  public function buildOptionsForm(&$form, FormStateInterface $form_state) {
    parent::buildOptionsForm($form$form_state);

    $argument_text = $this->view->display_handler->getArgumentText();

    $form['#pre_render'][] = [static::class, 'preRenderMoveArgumentOptions'];

    $form['description'] = [
      '#markup' => $argument_text['description'],
      '#theme_wrappers' => ['container'],
      '#attributes' => ['class' => ['description']],
    ];

    $form['no_argument'] = [
      '#type' => 'details',
      
Home | Imprint | This part of the site doesn't use cookies.