Hi, as per the feedback in #5 and #6, I have:
- Deprecated the
defineExtraOptions()
method in theHandlerBase
class. - Added test to ensure proper deprecation handling.
- Created a change record → for the deprecation.
Kindly review the changes and please let me know if any further modifications are required.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi, I’ve added a test to ensure that custom keys in the #attached
array, such as library
and drupalSettings
, are handled properly without causing any exceptions.
Kindly review the changes and please let me know if any further adjustments are required.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi, I've addressed the feedback. Kindly please review. Thanks!
I've addressed #18 in this patch. Please review.
Hi everyone,
I've attempted to rebase the MR !3731 to the 11.x branch, but unfortunately, a large number of unrelated commits also showed up in the MR. I tried to revert my changes a few times, but I couldn't fully restore it to the original state. As a result, multiple comments and commits are added here as I tried to clean things up.
I apologize for the mess. Could someone please help me restore the MR to its previous state? Any assistance to get this back on track would be greatly appreciated.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi,
I have added deprecation to the user.admin.css
library following this guide:
How to Deprecate →
.
I also created a
Change Record →
for the same.
Kindly review the changes and please let me know if any further adjustments are needed. I appreciate any feedback or suggestions for improvements.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
breidert → credited vinmayiswamy → .
Hi, I have added test case to validate the path alias functionality across language switches. This test verify that the correct language is selected in the UI when creating aliases for nodes in different languages, ensuring users can easily access the aliases based on their current language.
Please review the changes, and let me know if any further adjustments are needed. I appreciate any feedback or suggestions for improvements.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi, I updated the CKEditor5DialogTest to ensure the CKEditor 5 balloon panel is properly positioned above the modal. Kindly please review the changes and let me know your suggestions.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
vinmayiswamy → made their first commit to this issue’s fork.
Hi, I updated the test to cover scenarios with multiple query parameters in the request, specifically adding extra parameters like foo
and q
alongside the page parameter. This change ensures that pagination resets correctly when there are additional parameters in the URL, which is common in real-world cases.
Hi, I updated the test to simulate scenarios where multiple query parameters are involved in the request. Specifically, I added test cases that include extra parameters like foo
and q
alongside the page parameter. This was necessary because, in real-world scenarios, URLs often contain additional parameters, and I wanted to ensure that the pagination reset behaves correctly even with these variations.
I started by filtering content by title and confirming the correct result. Then, I tested the page with both foo
and page
parameters, applying the filter again to check that the additional parameters didn’t affect the pagination. Lastly, I included a case where both q
and page
parameters appear in different positions, ensuring the pagination resets as expected.
These updates help cover edge cases with query parameters, preventing issues with pagination and ensuring that the filtered content is returned correctly.
Additionally, I verified the fix in Drupal 11.x fresh install and attached before and after screenshots for reference.
Kindly review the changes and please let me know if any further adjustments are needed. Your feedback and suggestions for improvements are greatly appreciated.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
tonypaulbarker → credited vinmayiswamy → .
Thank you, @antonnavi, for highlighting the incorrect usage of $target_entity_ids_list = array_keys($target_entity_ids);
.
I’ve updated the code to use $target_entity_ids_list = array_values($target_entity_ids);
, which correctly retrieves the entity IDs instead of revision IDs. Additionally, I've added test coverage to verify this change, ensuring that workspace associations are properly cleaned up when publishing the workspace.
Kindly review the changes and please let me know if any further adjustments are needed. Your feedback and suggestions for improvements are greatly appreciated.
Thanks!
Hi, I have updated the "Steps to Reproduce" section based on my understanding of the issue. Please review the changes and let me know if any further adjustments are needed. Thanks!
Hi, I have added test cases to EditorFileReferenceFilterTest.php
to validate the recent fix. These tests ensure that when only one dimension (width or height) is provided, the other dimension is correctly calculated to maintain the aspect ratio.
Kindly review the changes and please let me know if any further adjustments are needed. Any feedback or suggestions for improvements are appreciated.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi, I have tested the fix provided in MR !177. I followed the steps outlined in the issue summary to reproduce the issue before applying the fix and to verify the solution afterward.
Before the fix, I encountered the White Screen of Death (WSOD) with the following error message:
Drupal\Core\Entity\EntityStorageException: This entity can only be saved in the default workspace. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Although the node was created, it wasn’t added to the group, and the WSOD appeared with the above error logged.
After applying the fix, the issue was resolved. The WSOD no longer occurred, and the node was successfully created and added to the group within the non-default workspace.
Attaching before and after screenshots for reference.
I believe this is now good to go for RTBC!
Thanks!
Hi, I have updated the test cases to ensure that deprecation warnings are triggered by calling the deprecated methods directly, as per the feedback.
Please review the changes and let me know if any further adjustments are needed. Your feedback is appreciated.
Thanks!
Hi, I have created an MR incorporating the patch changes from comment #9 and added a test case to validate these changes as outlined in comment #11. The issue summary has been updated accordingly.
I am removing the "Needs issue summary update" and "Needs tests" tags. If anyone believes these tags should still be applied, please feel free to re-add them.
Kindly review the changes and let me know if any further adjustments or updates are needed. Your feedback and suggestions for further improvements are greatly appreciated.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
gargsuchi → credited vinmayiswamy → .
Hi, I’ve added tests to address the deprecation of the render_item()
method.
Kindly review the changes and please let me know if any further modifications are required.
Thanks!
Hi @avpaderno,
Thank you for your feedback.
I understand that when no error is shown for the name form element, it might imply that either the account does not exist or it has been blocked, which could potentially reveal hints about the account status.
Given this context, should we consider adjustments to the "if()" condition mentioned in comment
#9
🐛
Flood control on reset password form blocks IP address but not the account
Needs work
, or do you recommend another approach? I’m seeking confirmation as the "if()" condition (if ($account && $account->id() && $account->isActive()) { /* */ }
) was part of the existing code and not introduced by my recent changes.
Kindly please let me know how you’d like to proceed.
Thanks!
Hi, I’ve reproduced this issue on both Drupal 10.3.x and 11.x with PHP 8.3 and have made the proposed changes to address the issue. Here’s a summary of the updates:
- Flood Control Improvement: Updated the password reset functionality to ensure that both the IP address and the user account are simultaneously blocked after exceeding the allowed number of attempts. This ensures that the account is secured regardless of the IP address used.
- Error Message: As proposed, updated the error message to be more generic, enhancing security by not revealing whether the account exists.
Attaching before & after screenshots of the "Error Message" update for reference.
Due to my local environment setup, I was unable to change my IP address dynamically. Instead, I manually updated the IP address in the database to verify the behavior. The changes appear to resolve the issue as intended. However, it would be greatly appreciated if further testing could be conducted in an environment where IP changes can be performed to confirm the fix.
Kindly review the changes and let me know if any further adjustments or updates are needed.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi, I followed the steps outlined in the issue summary to reproduce this issue in Drupal 10.2.8-dev (cloned from 10.2.x), using MySQL 5.7 (as MySQL 5.8 is unsupported in DDEV for arm64 architecture. Please see the error below for reference) and PHP 8.3.
$ ddev config --database=mysql:5.8
You are reconfiguring the project at /Users/vinmayi.nidubrolu/projects/drupal102x/drupal.
The existing configuration will be updated and replaced.
Configuring a 'drupal' project named 'drupal102x' with docroot '' at '/Users/vinmayi.nidubrolu/projects/drupal102x/drupal'.
For full details use 'ddev describe'.
failed to validate config: the drupal102x project has an unsupported database type/version: 'mysql:5.8', DDEV arm64 only supports the following database types and versions: mariadb: [10.1 10.2 10.3 10.4 10.5 10.6 10.7 10.8 10.11], mysql: [5.7 8.0], postgres: [9 10 11 12 13 14 15 16]
However, I am not able to reproduce the issue.
After deleting all media types as described, I revisited the nodes created with the content type that included the media field. The nodes rendered without any issues, and there were no relevant entries in the "Recent log messages."
Additionally, I checked the same scenario in Drupal 11.x with PHP 8.3 and MariaDB 10.11, and I still couldn't reproduce the issue.
It seems that this issue may not be reproducible in my current environment. Kindly please let me know if there are any additional steps or configurations that I might have missed that could help in replicating the problem.
Thanks!
Hi, I attempted to reproduce this issue by following the steps below:
- Installed Drupal version 10.2.8-dev (cloned from 10.2.x).
- PHP version 8.1.29.
- Enabled the "locale" module.
- Noticed that the locale.settings.yml file is not created automatically after enabling the module.
- Was able to visit the /admin/config/regional/translate/settings page and save the settings form without encountering any issues.
- As mentioned in previous comments (#10, #12, #13 and #14), I copied the locale.settings.yml file with the command
cp core/modules/locale/config/install/locale.settings.yml sites/default/files/sync/locale.settings.yml
and executeddrush cim
. - Revisited the /admin/config/regional/translate/settings page and saved the settings form without any issues.
I also tested the same steps in Drupal versions 10.3.2 and 11.x with PHP 8.3 and did not replicate the issue.
If there are any specific steps or additional details I might have missed, please let me know. I would greatly appreciate any guidance.
Thanks!
Attaching screenshots for reference.
Hi, I followed the steps outlined in the issue summary but couldn't reproduce the issue. The view correctly displays the proper images for both fields.
My local setup specifications:
- Drupal 11.x
- PHP 8.3
- Search API 8.x-1.35
- Default database server for indexing
- Forma
tter: Render Entity
Everything worked as expected, with no issues in image rendering. If there are any additional steps or scenarios that I may have overlooked, or if there are other aspects I should consider, I would greatly appreciate any guidance.
Thanks!
the_g_bomb → credited vinmayiswamy → .
Hi, I tested the MR !7988 by following the steps outlined in the issue summary. Here’s what I observed:
- The "Title" field now correctly trims to 10 characters and the link is applied as expected.
- Text manipulations such as trimming and HTML stripping are processed before the link is applied, resolving the issue where the link was not correctly wrapping around the modified text.
The MR addresses the issue and ensures that "Link to the Content" integrates properly with text rewrites.
Attaching screenshots for reference.
I’ve also made updates to the issue summary. Kindly please review the changes and let me know if any further adjustments are needed.
Hi, I’ve reproduced the issue with the Link to URI
formatter in Drupal 10.3.2. I configured a view to trim URLs to 40 characters, which results in URLs being truncated to "..." and becoming non-clickable.
In my investigation, I added debug statements and found that while URL truncation works correctly, the HTML generated by the formatter is incorrect. Specifically, the link HTML element is not rendered as a clickable link after truncation. This suggests that the truncation is impacting the HTML anchor tag generation.
The proposed resolution to use l(_filter_url_trim($link->url, 40), $link->url)
seems to be a good approach to address this issue. I will look into applying this method to see if it resolves the problem.
I did not use the linkchecker module because it is throwing a deprecation error, which prevents me from checking broken links. The module's installed version is 2.0.0, and the error message is:
Deprecated function: Creation of dynamic property Drupal\linkchecker\Form\LinkCheckerAdminSettingsForm::$moduleHandler is deprecated in Drupal\linkchecker\Form\LinkCheckerAdminSettingsForm->__construct() (line 96 of modules/contrib/linkchecker/src/Form/LinkCheckerAdminSettingsForm.php).
I’ll update further once I explore the proposed resolution. Kindly please let me know if there are any additional details I should consider and any suggestions or guidance would be greatly appreciated.
Thanks!
Hi, I attempted to reproduce the issue by following the steps outlined in the issue summary. I checked in both Grid and Table views but was unable to replicate the problem in either case. The image inserted was always the correct one.
If there are any specific steps or additional details I might have missed, kindly please let me know, and I’d be happy to investigate further.
Thank you!
Hi, I’m able to reproduce this issue across multiple browsers and in a fresh Drupal 10.3.2 installation, following the steps mentioned in the issue summary. Here’s what I found:
- The issue occurs consistently in Chrome, Firefox, and Safari in both node edit and node add scenarios.
- No JavaScript errors or network issues were observed in developer tools, and there are no relevant entries in the "Recent log messages".
I’ve attached recordings showing the issue occurring in Chrome, Firefox, and Safari. If there are any further steps we should take or additional information needed, kindly please let me know.
Thanks!
Hi, I have updated the issue summary. Please review the changes and let me know if any further changes are required. Thank you!
Since there are no deprecation issues found, moving to RTBC. Thanks!
Hi, I have applied and reviewed the patch provided for Drupal 11 compatibility. The patch provided in comment #2 applied cleanly to the codebase without any issues. After applying the patch, I used the "Upgrade Status" module to check the module’s compatibility with Drupal 11. The module was confirmed to be compatible, with no remaining deprecation issues.
vinmayi.nidubrolu@******* file_view_access % wget https://www.drupal.org/files/issues/2024-03-17/file_view_access.2.0.x-dev.rector.patch
--2024-08-13 14:46:10-- https://www.drupal.org/files/issues/2024-03-17/file_view_access.2.0.x-dev.rector.patch
Resolving www.drupal.org (www.drupal.org)... 151.101.130.217, 151.101.2.217, 151.101.66.217, ...
Connecting to www.drupal.org (www.drupal.org)|151.101.130.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 332 [text/plain]
Saving to: ‘file_view_access.2.0.x-dev.rector.patch’
file_view_access.2.0.x-dev.rector.patch 100%[==============================================================================================================>] 332 --.-KB/s in 0s
2024-08-13 14:46:11 (5.03 MB/s) - ‘file_view_access.2.0.x-dev.rector.patch’ saved [332/332]
vinmayi.nidubrolu@******* file_view_access %
vinmayi.nidubrolu@******* file_view_access % ddev drush cr
[success] Cache rebuild complete.
vinmayi.nidubrolu@******* file_view_access % git apply -v file_view_access.2.0.x-dev.rector.patch
Checking patch file_view_access.info.yml...
Applied patch file_view_access.info.yml cleanly.
vinmayi.nidubrolu@******* file_view_access % ddev drush cr
[success] Cache rebuild complete.
Thank you to the "Project Update Bot" for providing the automated patch. If there are any further updates or changes needed, Kindly please let me know.
thejimbirch → credited vinmayiswamy → .
Hi,
I’ve made the necessary updates to address the deprecation of the render_item()
method. Here’s a summary of the changes:
Code Changes: The render_item()
method has been replaced with renderItem()
across the affected files. The deprecated method now triggers a deprecation notice, guiding developers to use the new method.
Documentation: The doc blocks in the relevant files have been updated to reflect the deprecation.
Change Record: A
change record →
has been drafted, detailing the deprecation of render_item()
in Drupal 11.x and its removal in Drupal 12.x, with a reference to the issue for further context.
Please review the changes and kindly advise if any further modifications are required.
Thanks!
vinmayiswamy → made their first commit to this issue’s fork.
Hi, It appears that the screenshots I attached in comment
#62
🐛
Inform users that the maintenance mode message is not displayed on cached pages
Needs review
were either missed or accidentally deleted. To ensure that everything is in place, I am re-uploading the screenshots here.
Thanks!
Kristen Pol → credited VinmayiSwamy → .
Hi, I have added a PHPUnit test case to verify the changes made to the doStoreConfigMap
method in the ConfigFormBase
class. This test is designed to check how the method handles text_format
elements with #config_target
properties and ensures that the configuration mappings are updated correctly.
In this test, I created a mock of FormStateInterface
to simulate the form state and validate that the doStoreConfigMap
method interacts with it as expected. Since doStoreConfigMap
is a protected method, I used reflection to access and invoke it.
The test involves setting up a mock for FormStateInterface
and specifying an expectation for the set method to be called with the key 'config_targets
' and a particular map. I then used reflection to invoke the protected doStoreConfigMap
method on a mocked instance of ConfigFormBase
. The sample form element defined includes text_format
and #config_target
attributes, as well as #array_parents
for validation.
The focus of the test is to ensure that the config_targets
map contains the correct entries and values for text_format
elements, verifying that the #config_target
properties are processed appropriately.
Could anyone please advise if a functional test is also required in addition to this unit test? While this unit test verifies the method in isolation, a functional test might be needed to assess its behaviour within the broader application context.
As this is my first attempt at writing test cases, I would really appreciate any feedback on whether this test is thorough and meets all necessary criteria. If there are additional scenarios to consider or best practices to follow, your guidance would be very helpful.
Please review the test case and let me know if any further steps are needed or if improvements should be made.
Thanks!
Hi @cilefen,
Thank you for the feedback. I agree that implementing a custom filter to handle HTML-escaped characters like "&" is a practical solution. This should address the issue with special characters in search queries.
To implement this, we’ll need to introduce a configuration option in the Views module to specify whether the search field contains HTML-escaped content. This setting will be integrated into the Views filter configuration.
Next, we’ll have to enhance the filtering logic to preprocess search terms using html_entity_decode()
, ensuring that HTML entities are converted back to their respective characters before executing the search. This adjustment will help match special characters accurately against the content.
We should also consider performance implications and ensure that this enhancement doesn’t introduce significant overhead, particularly with large datasets. Compatibility with existing Views functionalities is another important aspect to address.
Regarding combined filters, we may need to explore additional strategies. For example, we should ensure that HTML decoding is consistently applied across all filters. We might also need to refine how filters interact with each other and consider more advanced query handling to manage different scenarios effectively.
If there are any details I might have overlooked or additional considerations we should discuss, please let me know. I’d also appreciate any further suggestions or feedback you can provide.
Thanks!
Hi @cilefen,
Thank you for your response. I want to clarify that my comment was based on my understanding and analysis, and I wasn’t using any AI tools for my contribution. I appreciate your feedback and am happy to discuss any of the suggestions further.
Looking forward to your thoughts!
Thanks!
Hi @cilefen and @sivagami,
Thanks for the insights. Given the challenge with HTML-escaped characters like &
, Here are some potential approaches to address the issue:
Custom Filter Handling: We could enhance the Views module with a custom filter to preprocess search terms and decode HTML entities before executing the search. This would involve using functions such as html_entity_decode()
to ensure accurate matching. We’d need to be careful about performance and compatibility issues.
Search Backend Integration: Another option could be integrating a search engine backend like Solr or Elasticsearch. These tools handle special characters more robustly and offer advanced search capabilities, though they would require additional setup and configuration.
User Instructions: As a temporary measure, we might update user documentation to guide users to search with HTML-escaped characters (e.g., &
). While this doesn’t address the root cause, it could help manage expectations in the short term.
I’d love to hear your thoughts on these approaches. Do you see any other solutions we should explore, or have any opinions on which of these might be the most practical and effective?
Looking forward to your input and further discussion.
Thanks!
Kristen Pol → credited VinmayiSwamy → .
Hi, I have tested and verified the changes related to the page_cache_form_system_site_maintenance_mode_alter
hook and the success message after submitting the maintenance mode form. Below are the detailed steps I took to ensure the changes are correctly implemented:
- Verification of
page_cache_form_system_site_maintenance_mode_alter
Hook: - Verification of Success Message After Form Submission:
* Form Field Description Update:
* Navigation: Accessed the Maintenance Mode form through Administration > Configuration > System > Maintenance mode(/admin/config/development/maintenance
).
* Description Check: Verified that the description for the maintenance mode message field now includes the text: "To display the maintenance mode message to all site visitors, flush the page cache on the Performance Settings page."
* URL Validation: Confirmed that the URL in the description correctly points to the Performance Settings page(/admin/config/development/performance
).
* Enable Maintenance Mode:
-- Successfully enabled maintenance mode on the same form.
* Success Message Verification:
-- Submission: Submitted the form with maintenance mode enabled.
-- Message Display: Verified that the success message displayed after submission reads: "To display the maintenance mode message to all site visitors, flush the page cache on the Performance Settings page."
-- Link Verification: Confirmed that the link within the success message correctly directs to the Performance Settings page.
Cache Clearing: After testing, cleared the site cache using Administration > Configuration > Performance to ensure the updates were visible.
All changes have been verified and are functioning as intended. The form now correctly displays the updated description, and the success message includes the relevant information and link. The cache was cleared to reflect these changes immediately.
Attached screenshots for reference.
Before MR
After MR
Status message on form submit:
Performance settings page:
Kindly please let me know if any additional steps are needed.
Thanks!
Hi everyone,
I've re-rolled @mherchel's MR !8945 with his commit to resolve conflicts that emerged. Please review the updated changes in MR !9040.
I apologize for the default commit message—it was automatically generated because I forgot to provide a proper commit message initially. Thank you for your understanding.
If any additional adjustments are needed, please let me know. I’m happy to make any necessary changes based on your feedback.
Thanks!
VinmayiSwamy → made their first commit to this issue’s fork.
Hi everyone,
I’ve tried to reproduce this issue described in the issue description by following the steps mentioned. Here’s a summary of my findings:
Commit Analysis:
- The recent commit d251a98 includes a relevant fix in the views/js/base.js
file that addresses a similar issue.
- The updated code now includes logic to handle cases where query parameters might be empty, which aligns with the changes proposed in the patch for this issue.
Code Comparison:
Original Patch Diff:
- if (pair[0] !== 'q' && pair[1]) {
+ if (pair[0] && pair[0] !== 'q') {
Recent Commit Diff:
- if (pair[0] !== 'q' && pair[1]) {
- args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] =
- decodeURIComponent(pair[1].replace(/\+/g, ' '));
+ if (pair[0] !== 'q') {
+ if (pair[1]) {
+ args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] =
+ decodeURIComponent(pair[1].replace(/\+/g, ' '));
+ } else {
+ args[decodeURIComponent(pair[0].replace(/\+/g, ' '))] = '';
+ }
Findings:
- The recent commit ensures that query parameters are handled correctly even if their values are empty, resolving the issue of incorrect pagination and filtering behavior.
- I have tested the functionality in Drupal 11.x, and the filtering and pagination work as expected.
Given that the recent commit appears to resolve the issue and the functionality works correctly in Drupal 11.x, the patch proposed in this issue may no longer be necessary.
Request for Feedback:
- If there are any additional steps or scenarios that I may have overlooked while reproducing the issue, I would be grateful if you could share them with me.
- I would greatly appreciate any guidance on whether further action is required or if there are any other aspects I should consider.
Thanks!
Hi, to resolve this issue, the following modifications were made to the ConfigFormBase
class:
Enhanced Handling of text_format
Elements:
Added a special case handling for text_format
elements within the doStoreConfigMap()
method.
This ensures that text_format
elements are properly mapped to their value and format properties by updating the $map
array with these keys.
Code Modifications:
doStoreConfigMap()
Method:copyFormValuesToConfig()
Method:
Checked if the element type is text_format
.
If true, the #config_target
for text_format
fields is now mapped separately for both .value
and .format
properties. This prevents the conflict of having two #config_targets
pointing to the same configuration key.
Added logic to handle #array_parents
as arrays and applied proper mapping to avoid duplication issues.
Updated to ensure that $array_parents
is always treated as an array when retrieving form elements.
Added logic to skip the iteration if the parent path is not found and to ensure that elements have the #config_target
property set before processing.
The modifications ensure that text_format
elements are handled correctly by addressing the issue of duplicate configuration targets. By implementing specific logic for text_format
fields and updating the configuration mapping process, the fix prevents validation exceptions and maintains consistency across the configuration form.
Please review the changes to confirm that they address the issue effectively. Your feedback and suggestions for further improvements are greatly appreciated.
Thanks!
VinmayiSwamy → made their first commit to this issue’s fork.
Kindly please review.
Hi, I have created MR!17 for this feature request. This MR introduces updates to the front_page module's configuration form. The changes focus on improving the handling of token replacements in redirect paths and enhancing the codebase by following Drupal best practices.
Key Changes
Token Integration:
- Added support for token replacement in the front page path settings. Users can now use tokens like [node:title]
in the path fields, and these tokens will be replaced correctly when saving the settings.
Form Enhancements:
- Added token help to all path fields to guide users on using tokens effectively.
- Improved form validation to ensure that a path is provided when redirection is enabled for a role.
- Integrated token help UI using token_tree_link
to assist users with token insertion.
Code Quality and Refactoring:
- Refactored code to use dependency injection instead of direct service calls (\Drupal::service()
, \Drupal::moduleHandler()
, etc.).
- Cleaned up deprecated code and improved overall readability.
Testing Instructions
Verify Token Functionality:
- Ensure that token help is visible and functional for all path fields in the configuration form.
- Confirm that tokens in paths are replaced correctly when the form is submitted.
Form Validation:
- Validate that errors are displayed if a path is missing for roles with redirection enabled.
Code Quality:
- Verify that the code uses dependency injection properly and that deprecated service calls have been replaced.
Additional Notes
- Ensure that the
Token →
module is enabled to fully test token-related functionality.
- Review changes for any potential impact on other modules or configurations.
Thanks!
VinmayiSwamy → made their first commit to this issue’s fork.
Hi,
I have verified MR !8663 on Drupal 11.x. The suggested changes have been implemented. I checked the deprecation message by creating a sample view for testing, and I can confirm that the deprecation message appears on the dump.
Please see the attached screenshot for reference.
Additionally, @smustgrave mentioned the possibility of adding a deprecation test for this. Do we need to include a deprecation test? If so, we may need to move this issue to NW. Otherwise, I'm giving a +1 to RTBC.
Thanks!
Hi,
I've tested MR !3 on Drupal 10.3.x.
The MR is applied Cleanly...
Test Result: The phpcs issues were fixed after the updated changes.
RTBC+1
Thanks!
Hi, I've been trying to reproduce the issue described here but have not been able to.
Here are the steps I followed:
Initial Setup:
* Standard Drupal 11.x install with English as the default language.
* Enabled the content_translation and content_moderation modules.
* Added two additional languages (German and French).
* Enabled translation for the Article content type.
Steps Followed:
* Created an Article node in English and published it.
* Added a German translation and published it.
* Edited the English version, changed its language to French, and saved it as a draft.
* Attempted to access the draft version in French.
Outcome:
* I did not encounter the 404 error as described. The draft saved and accessed correctly.
Request for Guidance:
* Is it possible that this issue has been resolved in any recent updates?
* Are there any specific configurations or additional steps that I might have missed?
* If possible, could someone else attempt to reproduce the issue with the same steps to confirm the outcome?
Any assistance or insights you could provide would be greatly appreciated.
Thanks!
Hi, I attempted to reproduce the issue described here but was unable to replicate the error.
Below are the detailed steps I followed:
Setup:
* Installed Drupal 11.x on a fresh local environment.
* Enabled required modules: Content Translation, Language, and Locale.
Language Configuration:
* Added Telugu and French as new languages via Configuration > Regional and language > Languages.
Content Type Configuration:
* Enabled translation for the Article content type via Configuration > Regional and language > Content language and translation.
* Ensured fields like Title and Body are set to translatable.
Content Creation and Translation:
* Created an Article with a title and body in the default language (English).
* Added Telugu and French translations for the Article, providing translated titles and bodies.
Translation Deletion:
* Deleted the Telugu and French translations from the Article.
Observations:
* No InvalidArgumentException
was encountered.
* Checked Reports > Recent log messages: No related errors found.
Additional Information:
* Cache was cleared during the process.
* Debug mode was enabled in settings.php.
* Verified on multiple content types and with different languages.
If there are any specific configurations or steps that might have been missed, please let me know. Based on my testing, the issue does not appear to be reproducible in the current setup.
Thanks!
Fixed most of the issues reported by phpcs in the same MR.
The below are the remaining issues to be fixed.
$ ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/comment_notify
FILE: /Users/vinmayi.nidubrolu/projects/drupal103/drupal/modules/contrib/comment_notify/comment_notify.install
--------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
109 | WARNING | Unused variable $entity_type.
--------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103/drupal/modules/contrib/comment_notify/README.md
-------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------
14 | WARNING | Line exceeds 80 characters; contains 87 characters
45 | WARNING | Line exceeds 80 characters; contains 84 characters
61 | WARNING | Line exceeds 80 characters; contains 83 characters
88 | WARNING | Line exceeds 80 characters; contains 83 characters
-------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103/drupal/modules/contrib/comment_notify/comment_notify.module
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------
22 | WARNING | Global constants should not be used, move it to a class or interface
23 | WARNING | Global constants should not be used, move it to a class or interface
24 | WARNING | Global constants should not be used, move it to a class or interface
-------------------------------------------------------------------------------------------------------------
Time: 459ms; Memory: 16MB
Kindly please check and advise.
Thanks!
VinmayiSwamy → made their first commit to this issue’s fork.
Hi,
I've tested MR !1 in Drupal 10.3.x
The patch is applied Cleanly...
Test Result:
The phpcs issues were fixed after the updated changes.
RTBC+1
Thanks!
Moving to RTBC. Thanks!
Hey @Hetal.Solanki,
I attempted to apply the patch you provided in Drupal 11.x, but it didn't apply successfully. Could you please check and advise?
vinmayi.nidubrolu@********** salesforce_mfw % pwd
/Users/vinmayi.nidubrolu/projects/drupal11x/drupal/modules/contrib/salesforce_mfw
vinmayi.nidubrolu@********** salesforce_mfw % wget https://git.drupalcode.org/project/salesforce_mfw/-/merge_requests/3.diff
--2024-07-19 12:48:38-- https://git.drupalcode.org/project/salesforce_mfw/-/merge_requests/3.diff
Resolving git.drupalcode.org (git.drupalcode.org)... 151.101.194.217, 151.101.66.217, 151.101.2.217, ...
Connecting to git.drupalcode.org (git.drupalcode.org)|151.101.194.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘3.diff’
3.diff [ <=> ] 491 --.-KB/s in 0s
2024-07-19 12:48:39 (5.09 MB/s) - ‘3.diff’ saved [491]
vinmayi.nidubrolu@********** salesforce_mfw % git apply -v 3.diff
Skipped patch 'salesforce_mfw.info.yml'.
vinmayi.nidubrolu@********** salesforce_mfw % ddev drush cr
[success] Cache rebuild complete.
vinmayi.nidubrolu@********** salesforce_mfw % git apply -v 3.diff
Skipped patch 'salesforce_mfw.info.yml'.
vinmayi.nidubrolu@********** salesforce_mfw %
Thanks!
Correction needed: I mistakenly swapped the labels on the attached screenshots.
Here are the correct labels:
Before:
After:
Thanks!
Hi, I reviewed MR !2 on Drupal 10.2.x.
The MR applied cleanly.
vinmayi.nidubrolu@********** ckeditor_exclude_tags % git apply -v 2.diff
Checking patch ckeditor_exclude_tags.info.yml...
Applied patch ckeditor_exclude_tags.info.yml cleanly.
vinmayi.nidubrolu@********** ckeditor_exclude_tags %
vinmayi.nidubrolu@********** ckeditor_exclude_tags % ddev drush cr
[success] Cache rebuild complete.
vinmayi.nidubrolu@********** ckeditor_exclude_tags %
vinmayi.nidubrolu@********** ckeditor_exclude_tags % cat ckeditor_exclude_tags.info.yml
name: 'Ckeditor Exclude tags'
description: 'Exclude HTML tags in Ckeditor'
type: module
package: editor
core_version_requirement: ^8 || ^9 || ^10
configure: ckeditor_exclude.admin_settings
vinmayi.nidubrolu@********** ckeditor_exclude_tags %
Testing steps:
1. Installed and enabled the "Ckeditor Exclude Tags" module version 1.0.x-dev.
2. Navigated to Admin > Extend.
3. Verified that the "Configure" route is accessible from the module's details expansion.
Test Result:
After applying the MR, the "Configure" route is now accessible from the module's details.
Note: The configuration page currently displays as empty.
I've attached before and after screenshots for reference.
RTBC +1
Thanks!
VinmayiSwamy → made their first commit to this issue’s fork.
Hi, I created an MR to fix the phpcs issues reported but it seems like we don't have GitLab pipeline for this project. So I have downloaded the patch from MR and attaching here..
Kindly please review.
Thanks!
VinmayiSwamy → made their first commit to this issue’s fork.
+1 to #5. I have also tried to reproduce the issue on Drupal versions 10.2.x and 11.x by following the steps outlined in the summary. However, the project details page is functioning as expected and does not throw any exceptions as described in the issue summary.
@vbouchet, please advise if we might have missed something.
Thanks!
@smustgrave, sure will keep that in mind, thanks!
Hey @joachim
Thanks for reviewing the MR. I added else{} to the if{} at the top of the method as suggested. Kindly please review.
Thanks!
VinmayiSwamy → changed the visibility of the branch 3461421-getprocessplugins-normalises-the to hidden.
VinmayiSwamy → made their first commit to this issue’s fork.
Hey @apaderno and @msankhala, according to @fjgarlin in Drupal Slack, this issue might be preparation for the SSO switchover.
Hence, trying to log in via email does not work, doing it via username does after enabling Javascript in browser. (My bad. I never logged in with username before. that's why it didn't cross my mind).
Drupal Slack discussion - https://drupal.slack.com/archives/C5ABFBZ5Z/p1721019241288059
Thanks!
Hi,
Thanks for the MR. I’ve tested MR !541 on Drupal 10.3.x.
The MR applied cleanly.
Testing steps:
1. Install and enable "Project Browser" module version 2.0.x-dev.
2. Navigate to Admin > Extend > Browse.
3. Verify the appearance of the Filter Categories title in the left sidebar.
Test Result:
After applying the MR, I observed that padding-top
was correctly applied to the left sidebar.
I've attached before and after screenshots for reference.
RTBC +1
Thanks!
Hi @chaitanyadessai,
Indeed, the changes have been released in version 1.0.x. But still, the warning wasn't resolved.
I verified this in Drupal version 10.2.x. I'm still getting this Unused variable $i.
warning along with other phpcs issues.
Below are the phpcs issues from the same file.
$ ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/ckeditor
FILE: /Users/vinmayi.nidubrolu/projects/drupal102x/drupal/modules/contrib/ckeditor/tests/src/FunctionalJavascript/BigPipeRegressionTest.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
55 | ERROR | Public method name "BigPipeRegressionTest::testCommentForm_2698811" is not in lowerCamel format
100 | WARNING | Unused variable $i.
-------------------------------------------------------------------------------------------------------------------------------------------
Moving back to NW.
Thanks!
I see there is another issue created for phpcs for the same version here - Fix the issues reported by phpcs 📌 Fix the issues reported by phpcs Needs review .
Hence, +1 to RTBC.
Thanks!
Hi,
I applied patch
entity_browser-3366693-3.patch →
to the
entity_browser →
module against version
8.x-2.x-dev →
in Drupal version 10.3.x.
The patch was applied cleanly..
$ git apply -v entity_browser-3366693-3.patch
Checking patch entity_browser.views.inc...
Checking patch modules/entity_form/entity_browser_entity_form.module...
Checking patch src/Form/EntityBrowserEditForm.php...
Checking patch src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php...
Checking patch tests/src/FunctionalJavascript/ConfigurationTest.php...
Hunk #1 succeeded at 198 (offset -1 lines).
Checking patch tests/src/FunctionalJavascript/EntityBrowserTest.php...
Applied patch entity_browser.views.inc cleanly.
Applied patch modules/entity_form/entity_browser_entity_form.module cleanly.
Applied patch src/Form/EntityBrowserEditForm.php cleanly.
Applied patch src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php cleanly.
Applied patch tests/src/FunctionalJavascript/ConfigurationTest.php cleanly.
Applied patch tests/src/FunctionalJavascript/EntityBrowserTest.php cleanly.
Test Result:
Few phpcs issues were fixed, but several errors and warnings were still present.
./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/entity_browser
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/modules/entity_browser_test/entity_browser_test.routing.yml
----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction
----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/modules/entity_browser_test/src/Form/FormElementTest.php
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
33 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
37 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/EntityBrowserWebDriverTestBase.php
----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\field\Entity\FieldConfig.
254 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
288 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
313 | ERROR | [x] Scope keyword "protected" must be followed by a single space; found 2
----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/EntityBrowserViewsWidgetTest.php
--------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Field\FieldStorageDefinitionInterface.
--------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/InlineEntityFormTest.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------
418 | ERROR | [x] list(...) is forbidden, use [...] instead.
------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/PluginsTest.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
232 | WARNING | [x] 'TODO test if entities were selected. Will most likely need a custom event' should match the format '@todo Fix problem X here.'
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/EntityBrowserTest.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
44 | WARNING | [x] '@TODO Test the edit button.' should match the format '@todo Fix problem X here.'
183 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/EntityReferenceWidgetTest.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
607 | ERROR | [x] list(...) is forbidden, use [...] instead.
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/FieldWidgetConfigTest.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------
157 | WARNING | Line exceeds 80 characters; contains 104 characters
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/FunctionalJavascript/CardinalityTest.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
244 | WARNING | Line exceeds 80 characters; contains 82 characters
322 | WARNING | Line exceeds 80 characters; contains 82 characters
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/Functional/EntityBrowserUITest.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
37 | ERROR | Public method name "EntityBrowserUITest::testEntityBrowserUI" is not in lowerCamel format
-------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/tests/src/Functional/FormElementTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
73 | ERROR | The array declaration extends to column 151 (the limit is 120). The array content should be split up over multiple lines
73 | ERROR | The array declaration extends to column 150 (the limit is 120). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/entity_browser.api.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------
14 | WARNING | Line exceeds 80 characters; contains 92 characters
24 | WARNING | Line exceeds 80 characters; contains 91 characters
34 | WARNING | Line exceeds 80 characters; contains 88 characters
44 | WARNING | Line exceeds 80 characters; contains 99 characters
54 | WARNING | Line exceeds 80 characters; contains 103 characters
65 | WARNING | Line exceeds 80 characters; contains 101 characters
---------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/modules/entity_form/entity_browser_entity_form.module
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Field\FieldDefinitionInterface.
32 | WARNING | [x] 'TODO - 'default' might become configurable or something else in the future.' should match the format '@todo Fix problem X here.'
83 | WARNING | [x] 'TODO see if we can get away without overriding entire IEF function.' should match the format '@todo Fix problem X here.'
121 | WARNING | [x] 'TODO see if we can get away without overriding entire IEF function.' should match the format '@todo Fix problem X here.'
-------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/modules/entity_form/src/Plugin/EntityBrowser/Widget/EntityForm.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityDisplayRepositoryInterface.
155 | ERROR | [ ] The array declaration extends to column 147 (the limit is 120). The array content should be split up over multiple lines
156 | ERROR | [ ] The array declaration extends to column 166 (the limit is 120). The array content should be split up over multiple lines
-----------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/entity_browser.module
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface.
81 | ERROR | [ ] The array declaration extends to column 198 (the limit is 120). The array content should be split up over multiple lines
148 | ERROR | [x] list(...) is forbidden, use [...] instead.
166 | ERROR | [x] list(...) is forbidden, use [...] instead.
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Form/EntityBrowserEditForm.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\SubformState.
17 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Form/EntityBrowserForm.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Render\RendererInterface.
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/WidgetBase.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
332 | ERROR | [ ] Parameter $form_state is not described in comment
359 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Entity/EntityBrowser.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------
323 | WARNING | [x] 'TODO - this doesn't make much sense. Refactor.' should match the format '@todo Fix problem X here.'
332 | WARNING | [x] 'TODO - this doesn't make much sense. Refactor.' should match the format '@todo Fix problem X here.'
386 | WARNING | [x] 'TODO: Allow displays to define more than just path.' should match the format '@todo Fix problem X here.'
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/WidgetInterface.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
78 | WARNING | Line exceeds 80 characters; contains 83 characters
----------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/DisplayInterface.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/Field/FieldWidget/EntityReferenceBrowserWidget.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
880 | WARNING | [x] 'TODO Figure out how to avoid using raw user input.' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/Field/FieldWidget/FileBrowserWidget.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
304 | ERROR | [ ] The array declaration extends to column 133 (the limit is 120). The array content should be split up over multiple lines
439 | ERROR | [x] Use null coalesce operator instead of ternary operator.
445 | ERROR | [ ] The array declaration extends to column 129 (the limit is 120). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Widget/Upload.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------
65 | ERROR | The array declaration extends to column 177 (the limit is 120). The array content should be split up over multiple lines
120 | WARNING | Line exceeds 80 characters; contains 81 characters
------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Widget/View.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------
67 | WARNING | [x] 'TODO - do we need better error handling for view and view_display (in' should match the format '@todo Fix problem X here.'
82 | ERROR | [x] Use null coalesce operator instead of ternary operator.
108 | ERROR | [ ] The array declaration extends to column 149 (the limit is 120). The array content should be split up over multiple lines
109 | ERROR | [ ] The array declaration extends to column 130 (the limit is 120). The array content should be split up over multiple lines
110 | ERROR | [ ] The array declaration extends to column 127 (the limit is 120). The array content should be split up over multiple lines
236 | ERROR | [ ] The array declaration extends to column 170 (the limit is 120). The array content should be split up over multiple lines
271 | WARNING | [ ] ViewEntity::load calls should be avoided in classes, use dependency injection instead
-------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/FieldWidgetDisplay/RenderedEntity.php
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
58 | ERROR | [x] Expected 1 space after "?"; 2 found
59 | ERROR | [x] Expected 1 space after ":"; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/FieldWidgetDisplay/ImageThumbnail.php
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
53 | ERROR | [x] Expected 1 space after "?"; 2 found
54 | ERROR | [x] Expected 1 space after ":"; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/WidgetSelector/Tabs.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/WidgetSelector/DropDown.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/WidgetSelector/Single.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/SelectionDisplay/View.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\views\Entity\View.
41 | WARNING | [x] 'TODO - do we need better error handling for view and view_display' should match the format '@todo Fix problem X here.'
52 | WARNING | [x] 'TODO - if there are entities that are selected multiple times this' should match the format '@todo Fix problem X here.'
93 | ERROR | [ ] The array declaration extends to column 146 (the limit is 120). The array content should be split up over multiple lines
116 | ERROR | [x] list(...) is forbidden, use [...] instead.
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Display/Modal.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Ajax\AjaxResponse.
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/EntityBrowser/Display/Standalone.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
48 | WARNING | [ ] Possible useless method overriding detected
50 | WARNING | [x] '@TODO Implement it.' should match the format '@todo Fix problem X here.'
57 | WARNING | [x] '@TODO Implement it.' should match the format '@todo Fix problem X here.'
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Plugin/views/display/EntityBrowser.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
133 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Element/EntityBrowserElement.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityInterface.
257 | ERROR | [x] list(...) is forbidden, use [...] instead.
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/SelectionDisplayBase.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
133 | ERROR | [ ] The trigger_error message 'checkPreselectionSupport method is deprecated. Use supportsPreselection instead.' does not match the relaxed standard format: %thing% is deprecated in
| | %deprecation-version% any free text %removal-version%. %extra-info%. See %cr-link%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/SelectionDisplayInterface.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
69 | ERROR | The text '@deprecated Use ::supportsPreselection instead.' does not match the standard format: @deprecated in %deprecation-version% and is removed from %removal-version%. %extra-info%.
69 | ERROR | Each @deprecated tag must have a @see tag immediately following it
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/EntityBrowserInterface.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------
53 | ERROR | Parameter $widget_selector is not described in comment
56 | ERROR | Doc comment for parameter $display does not match actual variable name $widget_selector
64 | ERROR | Parameter $selection_display is not described in comment
67 | ERROR | Doc comment for parameter $display does not match actual variable name $selection_display
-----------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/WidgetSelectorBase.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
28 | ERROR | [ ] Class property $widget_ids should use lowerCamel naming without underscores
43 | ERROR | [x] Use null coalesce operator instead of ternary operator.
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Events/Events.php
--------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 4 WARNINGS AFFECTING 7 LINES
--------------------------------------------------------------------------------------------------------------------
12 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
19 | WARNING | Line exceeds 80 characters; contains 82 characters
20 | WARNING | Line exceeds 80 characters; contains 85 characters
20 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
27 | WARNING | Line exceeds 80 characters; contains 82 characters
29 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
36 | WARNING | Line exceeds 80 characters; contains 81 characters
37 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
--------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Events/EventBase.php
-----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
45 | ERROR | Public method name "EventBase::getBrowserID" is not in lowerCamel format
55 | ERROR | Public method name "EventBase::getBrowserInstanceUUID" is not in lowerCamel format
-----------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Events/EntitySelectionEvent.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------
35 | ERROR | Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Controllers/EntityBrowserFormController.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------------------------
107 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
109 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Controllers/EntityBrowserListBuilder.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
33 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Controllers/EntityBrowserController.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
77 | ERROR | The array declaration extends to column 237 (the limit is 120). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/RouteSubscriber.php
----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------
50 | WARNING | [x] The variable name should be defined after the type
66 | ERROR | [ ] Protected method name "RouteSubscriber::getBrowserIDsWithRoute" is not in lowerCamel format
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Ajax/SelectEntitiesCommand.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
9 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
---------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/Ajax/ValueUpdatedCommand.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
17 | ERROR | Class property $details_id should use lowerCamel naming without underscores
-------------------------------------------------------------------------------------------------------------------------
FILE: /Users/vinmayi.nidubrolu/projects/drupal103x/drupal/modules/contrib/entity_browser/src/DisplayBase.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Plugin\ContainerFactoryPluginInterface.
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
Time: 1.96 secs; Memory: 20MB
Moving to NW.
Thanks!
Thank you @nishtha.pradhan, for your MR and for addressing the documentation for TablesInterface::addField()
in Drupal core.
I've reviewed the changes provided in Drupal version 11.x. To enhance clarity, I suggest explicitly stating in the documentation that dot notation (.) can be used to specify fields involving relationships. This is consistent with practices observed in tests such as EntityQueryRelationshipTest
.
For example:
/**
* Adds a field to a database query.
*
* @param string $field
* The field to add to the query. Use dot notation to specify fields from
* related entities, e.g., "entity.field" or "entity:referenced_entity.field".
* Delta can be a numeric value or a "%delta" for any value.
*
* See {@link https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!QueryInterface.php/function/QueryInterface%3A%3Acondition/8.9.x QueryInterface::condition()} for more details.
* @param string $type
* Join type, can either be INNER or LEFT.
* @param string $langcode
* The language code to use for multilingual queries.
*
* @return string
* The return value is a string containing the alias of the table, a dot
* and the appropriate SQL column as passed in. This allows the direct use
* of this in a query for a condition or sort.
*
* @throws \Drupal\Core\Entity\Query\QueryException
* If $field specifies an invalid relationship.
*/
public function addField($field, $type = 'INNER', $langcode = NULL);
I would appreciate feedback from others on this proposed change. Does this approach align with the understanding of how fields should be specified in Drupal queries? Are there any additional considerations we should take into account?
Your thoughts and suggestions would be valuable.
Thank you!
VinmayiSwamy → changed the visibility of the branch 1.0.x to active.