Commit d96b251a authored by Jacob Rockowitz's avatar Jacob Rockowitz Committed by jrockowitz
Browse files

Issue #3075845 by jrockowitz: Append [EXPERIMENTAL] to sandbox Add-ons/Modules

parent 7dafa972
Loading
Loading
Loading
Loading
+5 −0
Changes for src/Controller/WebformAddonsController.php: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -117,6 +117,11 @@ class WebformAddonsController extends ControllerBase implements ContainerInjecti
      ];
      $projects = $this->addons->getProjects($category_name);
      foreach ($projects as $project_name => &$project) {
        // Append (Experimental) to title.
        if (!empty($project['experimental'])) {
          $project['title'] .= ' [' . $this->t('EXPERIMENTAL') . ']';
        }
        // Prepend logo to title.
        if (isset($project['logo'])) {
          $project['title'] = Markup::create('<img src="' . $project['logo']->toString() . '" alt="' . $project['title'] . '"/>' . $project['title']);
        }
+21 −1
Changes for src/WebformAddonsManager.php: 21 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -514,6 +514,15 @@ class WebformAddonsManager implements WebformAddonsManagerInterface {
      'category' => 'integration',
    ];

    // Integrations: Webform Emfluence.
    $projects['emfluence_webform'] = [
      'title' => $this->t('Webform Emfluence'),
      'description' => $this->t('Integrates Emfluence Marketing Platform\'s contacts/save endpoint and Webform 8.x.'),
      'url' => Url::fromUri('https://www.drupal.org/sandbox/huskyninja/3074135'),
      'experimental' => TRUE,
      'category' => 'integration',
    ];

    // Integrations: Webform E-petition.
    $projects['webform_epetition'] = [
      'title' => $this->t('Webform E-petition'),
@@ -527,6 +536,7 @@ class WebformAddonsManager implements WebformAddonsManagerInterface {
      'title' => $this->t('Webform iContact'),
      'description' => $this->t('Send Webform submissions to iContact list.'),
      'url' => Url::fromUri('https://www.drupal.org/sandbox/ibakayoko/2853326'),
      'experimental' => TRUE,
      'category' => 'integration',
    ];

@@ -586,6 +596,15 @@ class WebformAddonsManager implements WebformAddonsManagerInterface {
      'category' => 'integration',
    ];

    // Integrations: Webform Mattermost.
    $projects['webform_mattermost'] = [
      'title' => $this->t('Webform Mattermost'),
      'description' => $this->t('Adds a handler for sending webform submissions to Mattermost'),
      'url' => Url::fromUri('https://www.drupal.org/sandbox/eruiter/3060949'),
      'experimental' => TRUE,
      'category' => 'integration',
    ];

    // Integrations: Webform Mautic.
    $projects['webform_mautic'] = [
      'title' => $this->t('Webform Mautic'),
@@ -623,6 +642,7 @@ class WebformAddonsManager implements WebformAddonsManagerInterface {
      'title' => $this->t('Webform Slack'),
      'description' => $this->t('Provides a Webform handler for posting a message to a slack channel when a submission is saved.'),
      'url' => Url::fromUri('https://www.drupal.org/sandbox/smaz/2833275'),
      'experimental' => TRUE,
      'category' => 'integration',
    ];

@@ -1032,6 +1052,7 @@ class WebformAddonsManager implements WebformAddonsManagerInterface {
      'title' => $this->t('Webform Config Key Value'),
      'description' => $this->t('Use the KeyValueStorage to save webform config instead of yaml config storage, allowing webforms to be treated more like content than configuration and are excluded from the configuration imports/exports.'),
      'url' => Url::fromUri('https://www.drupal.org/sandbox/thtas/2994250'),
      'experimental' => TRUE,
      'category' => 'utility',
    ];

@@ -1108,7 +1129,6 @@ class WebformAddonsManager implements WebformAddonsManagerInterface {
        if (file_exists("$addon_paths/$project_name.$addon_extension")) {
          $projects[$project_name]['logo'] = Url::fromUri("$base_url/$addon_paths/$project_name.$addon_extension");
        }

      }
    }

+2 −1
Changes for src/WebformHelpManager.php: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -553,7 +553,8 @@ class WebformHelpManager implements WebformHelpManagerInterface {
        $build['content'][$category_name]['projects'][$project_name] = [
          'title' => [
            '#type' => 'link',
            '#title' => $project['title'],
            '#title' => $project['title']
              . (!empty($project['experimental']) ? ' [' . $this->t('EXPERIMENTAL') . ']' : ''),
            '#url' => $project['url'],
            '#prefix' => '<dt>',
            '#suffix' => ((isset($project['recommended'])) ? ' ★' : '') . '</dt>',