Skip to content

Instantly share code, notes, and snippets.

View damiankloip's full-sized avatar

Damian Lee damiankloip

View GitHub Profile
<?php
/**
* @file
* Definition of Drupal\views\Tests\Handler\HandlerAliasTest.
*/
namespace Drupal\views\Tests\Handler;
use Drupal\views\Tests\ViewTestBase;
<?php
/**
* @file
* Definition of Drupal\views\Tests\DefaultViewsTest.
*/
namespace Drupal\views\Tests;
use Drupal\simpletest\WebTestBase;
diff --git a/lib/Drupal/views/ViewStorageController.php b/lib/Drupal/views/ViewStorageController.php
index 744157c..43215ba 100644
--- a/lib/Drupal/views/ViewStorageController.php
+++ b/lib/Drupal/views/ViewStorageController.php
@@ -56,87 +56,12 @@ class ViewStorageController extends ConfigStorageController {
}
/**
- * Overrides Drupal\config\ConfigStorageController::save().
- *
if (isset($this->current_display) && !$status) {
return TRUE;
}
// Unset the display handlers and current dispaly.
elseif($status) {
unset($this->current_display, $this->display_handler, $this->displayHandlers);
}
Storage
base_table node
name frontpage
description Emulates the default Drupal front page; you may set the default home page path to this view to make it your front page.
tag default
human_name Front page
core 8
api_version 3.0
diff --git a/lib/Views/aggregator/Plugin/views/argument/CategoryCid.php b/lib/Views/aggregator/Plugin/views/argument/CategoryCid.php
index 2be3fdd..06c16f5 100644
--- a/lib/Views/aggregator/Plugin/views/argument/CategoryCid.php
+++ b/lib/Views/aggregator/Plugin/views/argument/CategoryCid.php
@@ -28,10 +28,7 @@ class CategoryCid extends Numeric {
function title_query() {
$titles = array();
- $query = db_select('aggregator_category', 'c');
- $query->addField('c', 'title');
<?php
/**
* Drush views execute command.
*/
function drush_views_execute($view_name, $display_id = 'default') {
$args = func_get_args();
$view_args = array();
// If it's more than 2, we have arguments. A display has to be specified in
<?php
$var = 'a';
switch ($var) {
case 'a':
if (FALSE) {
dpm('a');
}
case 'b':
diff --git a/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php b/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php
new file mode 100644
index 0000000..ee47782
--- /dev/null
+++ b/core/modules/views/lib/Drupal/views/Tests/UI/PreviewTest.php
@@ -0,0 +1,33 @@
+<?php
+
+/**
+ * @file
$items = array('a', array(
'data' => 'b',
'children' => array('c', 'd'),
), 'e');
dpm(theme('item_list', array('items' => $items)));