Skip to content

Instantly share code, notes, and snippets.

@jhedstrom
Created March 14, 2017 18:45
Show Gist options
  • Save jhedstrom/c7363736f42ea3adda3a8f72463bfd87 to your computer and use it in GitHub Desktop.
Save jhedstrom/c7363736f42ea3adda3a8f72463bfd87 to your computer and use it in GitHub Desktop.
Core markup vs views
> drush php
Psy Shell v0.8.2 (PHP 7.0.13 — cli) by Justin Hileman
>>> $one = Drupal\views\Render\ViewsRenderPipelineMarkup::create(1);
=> Drupal\views\Render\ViewsRenderPipelineMarkup {#8821}
>>> $two = Drupal\Core\Render\Markup::create(2);
=> Drupal\Core\Render\Markup {#8818}
>>> $two > $one;
=> false
>>> $two == $one;
=> false
>>> $two < $one;
=> false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment