There are two Php.php files inside Views module (argument validator/default) that must be moved under the php module.

  1. git move (see https://drupal.org/documentation/git/configure renames = copies) the file
  2. change namespace appropriately
  3. add the relevant use Drupal\views\Plugin\views\argument_validator\ArgumentValidatorPluginBase / argument_default\ArgumentDefaultPluginBase statements.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plopesc’s picture

Status: Active » Needs review
FileSize
12 KB

Hello

Attaching patch that moves PHP default argument and argument validator to PHP module.

Regards

chx’s picture

Status: Needs review » Reviewed & tested by the community

Very nice job, separating out the test like that.

Put all the rats in one trap, said Gandalf; and I will.

With this patch, all evals are now inside the PHP module.

dawehner’s picture

Status: Reviewed & tested by the community » Needs review
FileSize
5.63 KB
3.05 KB
5.42 KB

It is a perfect idea to move this functionality to the php module.

Here is also a move diff, as it is way easier to review, so no credit please.

Additional there are some fixes involved which seemed to be required to get this change in.

chx’s picture

Status: Needs review » Reviewed & tested by the community

Oh sure, thanks for fixing it up. (Although I still object fixing Contains vs Definition piecemeal, it needs to be done in one go, but as long as it doesnt block a patch why not.)

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed a5c9398 and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.