Results

08.10.2020
php 8.x-1.1 :: src/Plugin/views/argument_default/Php.php
      '#title' => $this->t('PHP contextual filter code'),
      '#default_value' => $this->options['code'],
      '#description' => $this->t('Enter PHP code that returns a value to use for this filter. Do not use <?php ?>. You must return only a single value for just this filter. Some variables are available: the view object will be "$view". The argument handler will be "$argument", for example you may change the title used for substitutions for this argument by setting "argument->validated_title".'),
    ];

    // Only do this if using one simple standard form gadget.
    $this->checkAccess($form, 'code');
  }
08.10.2020
php 8.x-1.1 :: src/Plugin/views/argument_validator/Php.php
      '#title' => $this->t('PHP validate code'),
      '#default_value' => $this->options['code'],
      '#description' => $this->t('Enter PHP code that returns TRUE or FALSE. No return is the same as FALSE, so be SURE to return something if you do not want to declare the argument invalid. Do not use <?php ?>. The argument to validate will be "$argument" and the view will be "$view". You may change the argument by setting "$handler->argument". You may change the title used for substitutions for this argument by setting "$handler->validated_title".'),
    ];

    $this->checkAccess($form, 'code');
  }

  /**
17.12.2021
entity_machine_name 1.0.0-beta3 :: src/Plugin/views/argument_validator/EntityMachineNameTerm.php
    // Property created dynamically.
    if (!$this->argument->validated_title = $term->getName()) {
      $this->argument->validated_title = $this->t('No name');
    }

    return TRUE;
  }

}
17.12.2021
entity_machine_name 1.0.0-beta3 :: src/Plugin/views/argument_validator/EntityMachineNameNode.php
    // Property created dynamically.
    if (!$this->argument->validated_title = $node->getName()) {
      $this->argument->validated_title = $this->t('No name');
    }

    return TRUE;
  }

}
03.10.2020
calendar 8.x-1.x-dev :: src/Plugin/views/argument_validator/CalendarValidator.php
      // Override title for substitutions.
      // @see \Drupal\views\Plugin\views\argument\ArgumentPluginBase::getTitle
      $this->argument->validated_title = $this->dateFormatter->format($time, 'custom', $this->options['replacement_format']);
      return TRUE;
    }
    return FALSE;
  }

  /**
06.06.2019
taxonomy_machine_name 8.x-1.0-beta4 :: src/Plugin/views/argument_validator/TermMachineName.php
    // Property created dynamically.
    if (!$this->argument->validated_title = $term->getName()) {
      $this->argument->validated_title = $this->t('No name');
    }

    return TRUE;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc