Clean up unused code in EckContentController

Created on 29 October 2022, about 2 years ago
Updated 11 May 2023, over 1 year ago

Problem/Motivation

When the ECK entity type is created, but bundles are not added yet, we're supposed to see the following message:
You have not created any bundles for this type yet. Go to the <a href=":create_bundle">bundle creation page</a> to add a new bundle.

However, when visiting the page, the response is 403 and the message is:
You are not authorized to access this page.

Not sure yet what kind of message we should see, but if the 403 code is expect, then we have some dead code that never works.

Steps to reproduce

1) Create a new ECK entity type (for example, test), but do not add any bundles yet;
2) Go to /admin/content/{eck_entity_type}/add page;
3) See the 403 response;
4) Check \Drupal\eck\Controller\EckContentController::addPage() and the part where empty message is shown.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Matroskeen πŸ‡ΊπŸ‡¦ Ukraine, Lutsk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024