Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[generate:entity:content] buildRow function uses deprecated l() function #3176

Closed
khgoldberg opened this issue Feb 12, 2017 · 1 comment
Closed

Comments

@khgoldberg
Copy link

The buildRow() code that is generated from generate:entity:content uses the l() function which is deprecated (as I'm sure you know).

To replicate, I executed generate:entity:content, selected the custom module I'd created using drupal generate:module --learning. Detailed execution is below.

Drupal version: 8.2.6
Console version: 1.0.0-rc16 Drupal Console English Language
drupal/console-extend-plugin 0.2.0 Drupal Console Extend Plugin
Console launcher: 1.0.0-rc16

Detailed Execution

Enter the module name [timetracking]:

Enter the class of your new content entity [DefaultEntity]:

Subcategory

Enter the machine name of your new content entity [subcategory]:

Enter the label of your new content entity [Subcategory]:

Enter the base-path for the content entity routes [/admin/structure]:

/timetracking

Do you want this (content) entity to have bundles (yes/no) [no]:

Is your entity translatable (yes/no) [yes]:

no

Is your entity revisionable (yes/no) [yes]:

no

Generated or updated files

1 - modules/custom/timetracking/timetracking.permissions.yml
2 - modules/custom/timetracking/timetracking.links.menu.yml
3 - modules/custom/timetracking/timetracking.links.task.yml
4 - modules/custom/timetracking/timetracking.links.action.yml
5 - modules/custom/timetracking/src/SubcategoryAccessControlHandler.php
6 - modules/custom/timetracking/src/Entity/SubcategoryInterface.php
7 - modules/custom/timetracking/src/Entity/Subcategory.php
8 - modules/custom/timetracking/src/SubcategoryHtmlRouteProvider.php
9 - modules/custom/timetracking/src/Entity/SubcategoryViewsData.php
10 - modules/custom/timetracking/src/SubcategoryListBuilder.php
11 - modules/custom/timetracking/src/Form/SubcategorySettingsForm.php
12 - modules/custom/timetracking/src/Form/SubcategoryForm.php
13 - modules/custom/timetracking/src/Form/SubcategoryDeleteForm.php
14 - modules/custom/timetracking/subcategory.page.inc
15 - modules/custom/timetracking/templates/subcategory.html.twig

gnuget added a commit to agaric/drupal-console that referenced this issue May 29, 2017
In the interfrace-entity-content.php.twig file
@gnuget
Copy link
Contributor

gnuget commented May 29, 2017

I just create a pull request with a fix.

Thanks for report the problem.

  • David.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants