In Drupal 8, I'm using the dev version of Views PHP.

This code (below, which selects records based on month and day) works fine in Drupal 7, but nothing happens in Drupal 8.

Do you know if this is my code or your module?

===============
$out=node_load($row->field_event_date);
$contentdate = $out->field_event_date['und'][0]['value'];
$inpdate = date_create($contentdate);
$comdate = date_format($inpdate, 'd-m');
$currentdate = date('d-m');
if($currentdate==$comdate)
{
return false;
}
else
{
return true;
}
===============

Comments

jnimchuk created an issue.

id.tarzanych’s picture

This port was developed for Drupal 8 beta10
We need to check general module functionality with 8.0.3