Entity field capitalization module allow us to capitalize the value of any entity field. It can capitalize strings during the entity save and update. This module has the configuration to apply the capitalization on multiple fields.

Project Link

https://www.drupal.org/project/entity_field_capitalization

Comments

Dharmendra.s created an issue. See original summary.

vishal.kadam’s picture

Title: 1.0.x Entity field Capitalization » [1.0.x] Entity Field Capitalization
Issue summary: View changes

Thank you for applying! Reviewers will review the project files, describing what needs to be changed.

Please read Review process for security advisory coverage: What to expect for more details and Security advisory coverage application checklist to understand what reviewers look for. Tips for ensuring a smooth review gives some hints for a smoother review.

To reviewers: Please read How to review security advisory coverage applications, What to cover in an application review, and Drupal.org security advisory coverage application workflow.

While this application is open, only the user who opened the application can make commits to the project used for the application.

Reviewers only describe what needs to be changed; they don't provide patches to fix what reported in a review.

vinaymahale’s picture

Please set the branch 1.0.x as default so that it will be easy for other reviewers

vinaymahale’s picture

Status: Needs review » Needs work

Please fix the below PHPCS issues:

FILE: /entity_field_capitalization/README.md
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------
 3 | WARNING | Line exceeds 80 characters; contains 107 characters
-----------------------------------------------------------------------------------


FILE: /entity_field_capitalization/entity_field_capitalization.routing.yml
-------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
 7 | WARNING | The administration page callback should probably use "administer site configuration" - which implies the user
   |         | can change something - rather than "access administration pages" which is about viewing but not changing
   |         | configurations.
-------------------------------------------------------------------------------------------------------------------------------


FILE: /entity_field_capitalization/src/Form/EntityCapitalizationConfigForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------
 37 | WARNING | #description values usually have to run through t() for translation
 46 | WARNING | #description values usually have to run through t() for translation
---------------------------------------------------------------------------------------------------------------------


FILE: /entity_field_capitalization/entity_field_capitalization.module
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
 45 | WARNING | Unused variable $company_titles.
------------------------------------------------------------------------------------------------------------
mrinalini9’s picture

Status: Needs work » Needs review
StatusFileSize
new68 bytes

Added patch for the PHPCS issues mentioned in #4, please review it.

Thanks!

vishal.kadam’s picture

@mrinalini9 Reviewers don't provide patches to fix what reported in a review.

The applicant needs to make changes on their own.

vishal.kadam’s picture

Status: Needs review » Needs work
avpaderno’s picture

Issue summary: View changes
avpaderno’s picture

Dharmendra.s’s picture

Hi Everyone, Thanks for review & help,
I fixed above coding standard issues and merged to the main branch, Please review again.

Dharmendra.s’s picture

Status: Needs work » Needs review
shashank5563’s picture

@Dharmendra.s, I have reviewed the changes, and they look fine to me.

Let’s wait for other reviewers to take a look and if everything goes fine, you will get the role.

rajveergangwar’s picture

I would suggest you to create configuration field on content type or entity level
If we want to add this functionality in lot of enity type then single textarea field will be complex.

Dharmendra.s’s picture

@rajveer,
This feature mostly not used in all fields or major fields, That's why we did not include it in content type or entity label,
And it also support other entities like taxonomy,

vinaymahale’s picture

Priority: Normal » Major
avpaderno’s picture

Assigned: Unassigned » avpaderno
Priority: Major » Normal
Status: Needs review » Reviewed & tested by the community

Thank you for your contribution! I am going to update your account.

These are some recommended readings to help with excellent maintainership:

You can find more contributors chatting on the Slack #contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

I thank all the reviewers.

avpaderno’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.