3/3 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ --------------------------------------------------------------------------
Line block_token.module
------ --------------------------------------------------------------------------
57 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
60 Call to deprecated function drupal_render():
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the
82 Call to deprecated function db_like():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call escapeLike() on it. For example,
------ --------------------------------------------------------------------------
[ERROR] Found 3 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | interdiff-3089830-2-5.txt | 1.57 KB | Ravi_3596 |
| #5 | block_token-3089830-5.patch | 2.59 KB | Ravi_3596 |
| #2 | block_token-3089830-2.patch | 1.03 KB | rudranil29 |
Issue fork block_token-3089830
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rudranil29 commenteddeprecated method remove
Comment #3
rudranil29 commentedComment #4
Ravi_3596 commentedCONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
Block Token 8.x-1.0-alpha1+1-dev
Scanned on Sat, 06/20/2020 - 11:43.
1 error found. 1 warnings found.
C:\xampp\htdocs\d\drupal9\app\modules\contrib\block_token\src\BlockToke
nPermissions.php:
┌─────────┬──────┬─────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├─────────┼──────┼─────────────────────────────────────────────────────────────┤
│ Fix now │ 28 │ Parameter $entity_manager of method │
│ │ │ Drupal\block_token\BlockTokenPermissions::__construct() has │
│ │ │ typehint with deprecated interface │
│ │ │ Drupal\Core\Entity\EntityManagerInterface. Deprecated in │
│ │ │ drupal:8.0.0 and is removed from drupal:9.0.0. │
│ │ │ │
└─────────┴──────┴─────────────────────────────────────────────────────────────┘
modules/contrib/block_token/block_token.info.yml:
┌──────────┬──────┬────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼────────────────────────────────────────────────────────────┤
│ Check │ 0 │ Add
core_version_requirement: ^8 || ^9to ││ manually │ │ modules/contrib/block_token/block_token.info.yml to │
│ │ │ designate that the module is compatible with Drupal 9. See │
│ │ │ https://drupal.org/node/3070687. │
│ │ │ │
Comment #5
Ravi_3596 commentedUpdated patch. Please review !!
Comment #6
smrutha commentedPatch #5 looks good.
Comment #7
benjamindamron commentedAny chance we can get this committed? Or does anyone know a way around composer not wanting to pull this down?
Comment #8
ntaylor1994 commentedI also need this committed so I can go to D9.
Thanks
Comment #9
astringer commentedDitto to #8. Can we get this committed?
Comment #12
mighty_webber@bestller, Using this branch, I'm getting an error regarding the lack of composer.json file. Can I be given write access to this repo/branch or have you add a composer.json to that merge request please?
Comment #13
mighty_webberDisregard, I gained access and pushed the changes to your existing fork.
Comment #16
mighty_webberAdditional changes were required to make this module work properly. New Merge Request created and pushing this up to "Major" priority.
Comment #17
i-trokhanenko+1 RTBC
Comment #18
mlncn commentedWanted to echo that this is RTBC!
For any who want to start using it, you can bring it in by adding the following to your
composer.jsonfile:One bit of warning that can be an issue to work on once this patch/merge request is accepted, if you use a token for a block that is not placed anywhere, or that you had placed but then removed, it causes a fatal error:
Disabling the block is fine but this is something to watch out for if someone might come along and clean up "unused" blocks.
Comment #20
i-trokhanenko