az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

Update Marketing Cloud Implementation #2621

Open danahertzberg opened 1 year ago

danahertzberg commented 1 year ago

Motivation

Why the feature request was filed, example use cases, etc.

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Proposed Resolution

modules/custom/az_marketing_cloud/az_marketing_cloud.module image

  $view_id = \Drupal::routeMatch()->getParameter('view_id');
  if (!empty($view_id)) {
    $previous = $suggestions;
    $view_id = strtr($view_id, '-', '_');
    foreach ($previous as $p) {
      $suggestions[] = $p . '__' . $view_id;
    }
  }

modules/custom/az_marketing_cloud/az_marketing_cloud.module image

$view_id = \Drupal::routeMatch()->getParameter('view_id');

modules/custom/az_marketing_cloud/az_marketing_cloud.module image

  if (!empty($view_id)) {
    $previous = $suggestions;
    $view_id = strtr($view_id, '-', '_');
    foreach ($previous as $p) {
      $suggestions[] = $p . '__' . $view_id;
    }
  }
trackleft commented 1 year ago

Related: #2600