We need to cover several scenarios where views are used in panels by different modules.
We need to add a view as a dependency for a page manager handler when it uses a view:

  • As a block
  • From views panes
  • Adding it directly

We need to add as required:

  • The module that creates the base table of the view query.
  • views_content module when a view is using the display provided by it.

Comments

gdrupal’s picture

Status: Active » Needs review
StatusFileSize
new2.45 KB
dagmar’s picture

Looks good, just a simple fix:

+++ b/lib/Drupal/configuration/Config/ViewConfiguration.php
@@ -20,8 +20,17 @@ class ViewConfiguration extends CtoolsConfiguration {
+    $schema=drupal_get_schema($view->base_table);

$schema = drupal_get_schema($view->base_table);

neoxavier’s picture

Status: Needs review » Needs work

The last submitted patch, 1789368.dependencies_modules_view_handler.1.patch, failed testing.

gdrupal’s picture

Status: Needs work » Closed (fixed)

@neoxavier this is already committed, must be closed. My bad

neoxavier’s picture

no worries