Answers for "drupal 8 get page view"

0

drupal 8 get view page route

use \Drupal\Core\Url;

$url = Url::fromRoute('view.VIEW_MACHINE_NAME.PAGE_MACHINENAME');
Posted by: Guest on October-13-2020
0

drupal 8 get view page

$view_id = \Drupal::routeMatch()->getParameter('view_id');
$view = \Drupal\views\Views::getView($view_id);
Posted by: Guest on November-19-2020

Browse Popular Code Answers by Language