diff --git a/html/modules/custom/bc_dc/src/Plugin/Block/BcDcDashboardActions.php b/html/modules/custom/bc_dc/src/Plugin/Block/BcDcDashboardActions.php index d8e4e375..20d7c2c1 100644 --- a/html/modules/custom/bc_dc/src/Plugin/Block/BcDcDashboardActions.php +++ b/html/modules/custom/bc_dc/src/Plugin/Block/BcDcDashboardActions.php @@ -57,23 +57,6 @@ public static function create(ContainerInterface $container, array $configuratio public function build(): array { $links = []; - // Button to create a data_set. - $url = Url::fromRoute('node.add', ['node_type' => 'data_set'], ['query' => ['display' => 'section_1']]); - if ($url->access()) { - $links[] = [ - '#title' => $this->t('Add new data set'), - '#type' => 'link', - '#url' => $url, - '#attributes' => [ - 'class' => [ - 'button', - 'button--action', - 'button--primary', - ], - ], - ]; - } - // Link to saved searches. $url = Url::fromRoute('view.saved_searches.page', ['user' => $this->currentUser->id()]); if ($url->access()) { diff --git a/html/modules/custom/bc_dc/tests/src/Functional/BcDcFunctionalTest.php b/html/modules/custom/bc_dc/tests/src/Functional/BcDcFunctionalTest.php index 3d3e5da9..5513d016 100644 --- a/html/modules/custom/bc_dc/tests/src/Functional/BcDcFunctionalTest.php +++ b/html/modules/custom/bc_dc/tests/src/Functional/BcDcFunctionalTest.php @@ -343,8 +343,6 @@ public function test(): void { // Data set dashboard. $this->drupalGet('dashboard'); $this->assertSession()->statusCodeEquals(200); - // The create-new link exists. - $this->assertSession()->elementExists('xpath', '//a[@href = "/node/add/data_set?display=section_1"][text() = "Add new data set"]'); // View link. $args = [ ':data_set_title' => $data_set_title,