Active
Project:
Devel contrib
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2018 at 13:30 UTC
Updated:
25 Jan 2018 at 13:30 UTC
Jump to comment: Most recent
The views data page on D8 crashes my site (with a PHP memory of 700MB!!!).
Even if it did load, the kint output's JS would probably be really slow.
One way to tackle this would be to add a filter that does a partial text match of the array keys of the views data, and then shows you just what matches in the array.
Quick code I wrote to do this with a particular search string:
$views_data = \Drupal\views\Views::viewsData();
$views_info = $views_data->get();
$views_info_keys_filtered = preg_grep('@subscription@', array_keys($views_info));
$views_info_filtered = array_intersect_key($views_info, array_fill_keys($views_info_keys_filtered, TRUE));
ksort($views_info_filtered);
dpm($views_info_filtered);
To help with searching, the initial display of the page could show the list of array keys.
Comments