Skip to content

Commit

Permalink
Merge pull request #749 from UN-OCHA/RW-896
Browse files Browse the repository at this point in the history
feat: Remove crisis figures
  • Loading branch information
attiks authored Mar 15, 2024
2 parents eff4ee1 + 016ecf1 commit 96a8b49
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 364 deletions.
1 change: 0 additions & 1 deletion config/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ module:
reliefweb_guidelines: 0
reliefweb_homepage: 0
reliefweb_import: 0
reliefweb_key_figures: 0
reliefweb_meta: 0
reliefweb_moderation: 0
reliefweb_reporting: 0
Expand Down
5 changes: 0 additions & 5 deletions config/reliefweb_key_figures.settings.yml

This file was deleted.

15 changes: 0 additions & 15 deletions html/modules/custom/reliefweb_entities/src/Entity/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function getPageContent() {
public function getPageSections() {
$sections = [];
$sections['digital-sitrep'] = $this->getDigitalSitrepSection();
$sections['key-figures'] = $this->getKeyFiguresSection();

$queries = [];

Expand Down Expand Up @@ -107,7 +106,6 @@ public function getPageTableOfContents() {
'overview' => [
'title' => $this->t('Overview'),
'sections' => [
'key-figures' => $this->t('Key Figures'),
'appeals-response-plans' => $this->t('Appeals and Response Plans'),
'disasters' => $this->t('Disasters'),
],
Expand Down Expand Up @@ -137,19 +135,6 @@ protected function getDigitalSitrepSection() {
return $client->getDigitalSitrepBuild($iso3, $ongoing);
}

/**
* Get the ReliefWeb key figures for the country.
*
* @return array
* Render array for the Key Figures section.
*/
protected function getKeyFiguresSection() {
$client = \Drupal::service('reliefweb_key_figures.client');
$iso3 = $this->field_iso3->value;

return $client->getKeyFiguresBuild($iso3, $this->label());
}

/**
* {@inheritdoc}
*/
Expand Down
Loading

0 comments on commit 96a8b49

Please sign in to comment.