Skip to content
Snippets Groups Projects
Commit c4c13856 authored by Erik Seifert's avatar Erik Seifert
Browse files

Fix: Updates

parent d28f05ff
No related branches found
No related tags found
No related merge requests found
......@@ -129,8 +129,7 @@ const cmap = require('colormap');
intersect: false
},
legend: {
display: true,
position: 'bottom'
display: false,
}
}
});
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -65,6 +65,9 @@ abstract class MatomoBase extends DashboardLazyBuildBase {
case 'last_three_months':
$time = strtotime('first day of this month -3 months');
break;
case 'year':
$time = strtotime('first day of this month -1 year');
break;
default:
return $period;
}
......
......@@ -2,8 +2,9 @@
namespace Drupal\dashboards_matomo\Plugin\Dashboard;
use Drupal\Component\Serialization\Json;
use Drupal\Core\Url;
use Drupal\Component\Serialization\Json;
use Drupal\Core\Form\FormStateInterface;
use Drupal\dashboards\Plugin\DashboardBase;
/**
......@@ -17,6 +18,15 @@ use Drupal\dashboards\Plugin\DashboardBase;
*/
class TopUrls extends MatomoBase {
/**
* {@inheritdoc}
*/
public function buildSettingsForm(array $form, FormStateInterface $form_state, array $configuration): array {
$form = parent::buildSettingsForm($form, $form_state, $configuration);
$form['chart_type']['#access'] = FALSE;
return $form;
}
/**
* @param \Drupal\dashboards_matomo\Plugin\Dashboard\MatomoBase $plugin
* Matomo base plugin.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment