------ ---------------------------------------------------------------------------
Line src/Commands/PermanentEntitiesCommands.php
------ ---------------------------------------------------------------------------
Class Drush\Commands\DrushCommands not found and could not be autoloaded.
12 Class Drush\Commands\DrushCommands not found and could not be autoloaded.
------ ---------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------------
Line src/Controller/PermanentEntityController.php
------ -------------------------------------------------------------------------------------------
28 Call to deprecated method entityManager() of class Drupal\Core\Controller\ControllerBase:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Most of the time static::entityTypeManager() is supposed to be used
instead.
29 Call to deprecated method entityManager() of class Drupal\Core\Controller\ControllerBase:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Most of the time static::entityTypeManager() is supposed to be used
instead.
44 Call to deprecated method entityManager() of class Drupal\Core\Controller\ControllerBase:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Most of the time static::entityTypeManager() is supposed to be used
instead.
45 Call to deprecated function format_date():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::service('date.formatter')->format().
63 Call to deprecated method entityManager() of class Drupal\Core\Controller\ControllerBase:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Most of the time static::entityTypeManager() is supposed to be used
instead.
91 Call to deprecated method l() of class Drupal\Core\Controller\ControllerBase:
in drupal:8.0.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\Link::fromTextAndUrl() instead.
94 Call to deprecated method link() of class Drupal\Core\Entity\EntityInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\EntityInterface::toLink()->toString() instead.
------ -------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------
Line src/Form/PermanentEntityForm.php
------ ------------------------------------------------------------------------------------------------------------
47 Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal::time()->getRequestTime();
58 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
64 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ------------------------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/PermanentEntityRevisionDeleteForm.php
------ ----------------------------------------------------------------------
76 Call to deprecated function format_date():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::service('date.formatter')->format().
110 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
110 Call to deprecated function format_date():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal::service('date.formatter')->format().
------ ----------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------
Line src/Form/PermanentEntityRevisionRevertForm.php
------ ------------------------------------------------------------------------------------------------------------
123 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
144 Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal::time()->getRequestTime();
------ ------------------------------------------------------------------------------------------------------------
------ ------------------------------------------------------------------------------------------------------------
Line src/Form/PermanentEntityRevisionRevertTranslationForm.php
------ ------------------------------------------------------------------------------------------------------------
110 Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal::time()->getRequestTime();
------ ------------------------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/PermanentEntityTypeDeleteForm.php
------ ----------------------------------------------------------------------
41 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/PermanentEntityTypeForm.php
------ ----------------------------------------------------------------------
57 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
63 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ ---------------------------------------------------------------------------------------------------------------------------
Line src/PermanentEntityPermissions.php
------ ---------------------------------------------------------------------------------------------------------------------------
33 Parameter $entity_manager of method Drupal\permanent_entities\PermanentEntityPermissions::__construct() has typehint with
deprecated interface Drupal\Core\Entity\EntityManagerInterface:
in drupal:8.0.0 and is removed from drupal:9.0.0.
------ ---------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #31 | interdiff-3116378-28-31.txt | 613 bytes | dagmar |
| #28 | 3116378-28.patch | 15.14 KB | neelam_wadhwani |
| #22 | 3116378-21.patch | 15.06 KB | neelam_wadhwani |
| #18 | interdiff_16-17.txt | 14.21 KB | neelam_wadhwani |
| #17 | 3116378-17.patch | 14.21 KB | neelam_wadhwani |
Comments
Comment #2
neelam_wadhwani commentedComment #3
neelam_wadhwani commentedKindly review patch
Comment #4
neelam_wadhwani commentedComment #5
pavnish commented@neelam_wadhwani Thanks for this.
Could you please replace t() function in PermanentEntityRevisionRevertForm.php and or other files where it is feasible to fix .
Comment #6
neelam_wadhwani commentedHello @pavnish
Sure it will be done.
Comment #7
neelam_wadhwani commentedHello @pavnish
FILE: \modules\permanent_entities\src\Form\PermanentEntityRevisionDeleteForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------
76 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
90 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
110 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE:\modules\permanent_entities\src\Form\PermanentEntityRevisionRevertForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
76 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
90 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
119 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
123 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
FILE: \modules\permanent_entities\src\Form\PermanentEntityRevisionRevertTranslationForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
71 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
Please review patch
Comment #8
dagmar@neelam_wadhwani Thanks for working on this! Please see my comment in https://www.drupal.org/project/permanent_entities/issues/3116381#comment...
Comment #9
neelam_wadhwani commentedComment #10
dagmarComment #11
neelam_wadhwani commentedComment #12
neelam_wadhwani commentedComment #13
dagmarIt seems I was wrong. Metatags module did this in two steps too: #3109835: Declare compatibility with Drupal 9
Comment #14
dagmar@neelam_wadhwani I merged #3116381: Add core version requirement support for drupal 9 This patch needs a re-roll.
Comment #15
neelam_wadhwani commentedHello @dagmar.
Thanks for response.
Though you have merged the info issue..Yet this changes also need to be merged as they are drupal coding standards.
We have to fix them also.
Comment #16
neelam_wadhwani commentedComment #17
neelam_wadhwani commented@dagmar
Though the above patch pass, there were still "Coding standard message"
src/Controller/PermanentEntityController.php ✗ 1 more
line 11 Unused use statement
src/Form/PermanentEntityRevisionDeleteForm.php
32 Class property $PermanentEntityStorage should use lowerCamel naming without underscores
src/Form/PermanentEntityRevisionRevertForm.php
33 Class property $PermanentEntityStorage should use lowerCamel naming without underscores
src/PermanentEntityPermissions.php ✗ 1 more
34 Equals sign not aligned correctly; expected 1 space but found 2 spaces
Solved that.
Kindly review the patch.
Comment #18
neelam_wadhwani commentedComment #19
neelam_wadhwani commentedComment #20
neelam_wadhwani commentedComment #22
neelam_wadhwani commentedComment #23
neelam_wadhwani commentedComment #24
dagmar@neelam_wadhwani This looks great! Thanks!
There is one change that I'm not sure about. And is this:
The idea behind this assertion is to ensure the 'Edit' Button is visible in the user interface, this change in the assertion means either the button is no longer here, or the selector changed in D9 or is different in the stark theme.
In any case we should refactor this to expect to see this edit button.
Comment #25
neelam_wadhwani commentedComment #26
dagmar@neelam_wadhwani This is the html of the edit button in the stark theme.
I think you will need to use cssSelect. Can you try with
$this->cssSelect("ul.dropbutton > li.dropbutton-action a:contains('Edit')");instead?Comment #27
neelam_wadhwani commentedComment #28
neelam_wadhwani commentedHello @dagmar.
It worked.
Kindly review updated patch.
Thanks for it.
Comment #29
neelam_wadhwani commentedComment #30
kristen polFixing outdated tag.
Comment #31
dagmarThanks! I finally checked this, fixed a small issue with the REQUEST_TIME port.
Comment #33
dagmar