How can I have a custom module checked for deprecated functions?How can I list all Twig functions and filters with their description?How can I verify email addresses?Do i need to worry about using deprecated functions in Drupal 8?getFieldDefinitions on Drupal 8 (why all these deprecated functions on DP8?)How can I include some functions globally?How to set page variable from custom moduleCreate custom theme for moduleHow to call preprocess functions from my custom module

Why didn't Doc believe Marty was from the future?

What ways are there to "PEEK" memory sections in (different) BASIC(s)

Template factorial function without template specialization

Should I ask for a raise one month before the end of an internship?

Notice period 60 days but I need to join in 45 days

Why is 3/4 a simple meter while 6/8 is a compound meter?

Inspiration for failed idea?

Why is there not a willingness from the world to step in between Pakistan and India?

Are spot colors limited and why CMYK mix is not treated same as spot color mix?

Heat output from a 200W electric radiator?

Is Nikon D500 a good fit for nature and ambient-lighting portraits and occasional other uses?

Which polygons can be turned inside out by a smooth deformation?

What is the sound/audio equivalent of "unsightly"?

Did the Apollo Guidance Computer really use 60% of the world's ICs in 1963?

Did ancient peoples ever hide their treasure behind puzzles?

Do multi-engine jets need all engines with equal age to reduce asymmetry in thrust and fuel consumption arising out of deterioration?

What should be done with the carbon when using magic to get oxygen from carbon dioxide?

Whip it like Indy

If the UK Gov. has authority to cancel article 50 notification, why do they have to agree an extension with the EU

Why did the population of Bhutan drop by 70% between 2007 and 2008?

Find feasible point in polynomial time in linear programming

How could a self contained organic body propel itself in space

How to say "I only speak one language which is English" in French?

Is there a better way to use C# dictionaries than TryGetValue?



How can I have a custom module checked for deprecated functions?


How can I list all Twig functions and filters with their description?How can I verify email addresses?Do i need to worry about using deprecated functions in Drupal 8?getFieldDefinitions on Drupal 8 (why all these deprecated functions on DP8?)How can I include some functions globally?How to set page variable from custom moduleCreate custom theme for moduleHow to call preprocess functions from my custom module






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I created a custom module in Drupal 8 for a specific purpose.



How can I find out if it contains any deprecated functions?










share|improve this question


























  • Some IDEs can point out when using deprecated class or function e.g. Phpstorm. Also, you can check this repository github.com/mglaman/drupal-check

    – Ismail Cherri
    Aug 16 at 11:01











  • This question might be a bit off topic since it depends on which IDE you are using, or if you are using any IDE. If you don't use any smart IDE's you can search manually through your project, here's a list of all deprecated functions in Drupal 8.7. If you are using PHPStorm there is already an answer here.

    – Jdrupal
    Aug 16 at 11:46


















4















I created a custom module in Drupal 8 for a specific purpose.



How can I find out if it contains any deprecated functions?










share|improve this question


























  • Some IDEs can point out when using deprecated class or function e.g. Phpstorm. Also, you can check this repository github.com/mglaman/drupal-check

    – Ismail Cherri
    Aug 16 at 11:01











  • This question might be a bit off topic since it depends on which IDE you are using, or if you are using any IDE. If you don't use any smart IDE's you can search manually through your project, here's a list of all deprecated functions in Drupal 8.7. If you are using PHPStorm there is already an answer here.

    – Jdrupal
    Aug 16 at 11:46














4












4








4








I created a custom module in Drupal 8 for a specific purpose.



How can I find out if it contains any deprecated functions?










share|improve this question
















I created a custom module in Drupal 8 for a specific purpose.



How can I find out if it contains any deprecated functions?







8






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 16 at 10:50









leymannx

8,3205 gold badges36 silver badges70 bronze badges




8,3205 gold badges36 silver badges70 bronze badges










asked Aug 16 at 10:22









Rahulmon JohnsonRahulmon Johnson

243 bronze badges




243 bronze badges















  • Some IDEs can point out when using deprecated class or function e.g. Phpstorm. Also, you can check this repository github.com/mglaman/drupal-check

    – Ismail Cherri
    Aug 16 at 11:01











  • This question might be a bit off topic since it depends on which IDE you are using, or if you are using any IDE. If you don't use any smart IDE's you can search manually through your project, here's a list of all deprecated functions in Drupal 8.7. If you are using PHPStorm there is already an answer here.

    – Jdrupal
    Aug 16 at 11:46


















  • Some IDEs can point out when using deprecated class or function e.g. Phpstorm. Also, you can check this repository github.com/mglaman/drupal-check

    – Ismail Cherri
    Aug 16 at 11:01











  • This question might be a bit off topic since it depends on which IDE you are using, or if you are using any IDE. If you don't use any smart IDE's you can search manually through your project, here's a list of all deprecated functions in Drupal 8.7. If you are using PHPStorm there is already an answer here.

    – Jdrupal
    Aug 16 at 11:46

















Some IDEs can point out when using deprecated class or function e.g. Phpstorm. Also, you can check this repository github.com/mglaman/drupal-check

– Ismail Cherri
Aug 16 at 11:01





Some IDEs can point out when using deprecated class or function e.g. Phpstorm. Also, you can check this repository github.com/mglaman/drupal-check

– Ismail Cherri
Aug 16 at 11:01













This question might be a bit off topic since it depends on which IDE you are using, or if you are using any IDE. If you don't use any smart IDE's you can search manually through your project, here's a list of all deprecated functions in Drupal 8.7. If you are using PHPStorm there is already an answer here.

– Jdrupal
Aug 16 at 11:46






This question might be a bit off topic since it depends on which IDE you are using, or if you are using any IDE. If you don't use any smart IDE's you can search manually through your project, here's a list of all deprecated functions in Drupal 8.7. If you are using PHPStorm there is already an answer here.

– Jdrupal
Aug 16 at 11:46











1 Answer
1






active

oldest

votes


















4















Read Dries Buytaert's blog post on How to prepare for Drupal 9



drupal-check




If you work on a Drupal site as a developer, run drupal-check. Matt
Glaman (Centarro) developed a static PHP analysis tool called
drupal-check, which you can run against your codebase to check for
deprecated code. I recommend running drupal-check in an automated
fashion as part of your development workflow.




Link: https://github.com/mglaman/drupal-check



Upgrade Status




If you are a site owner, install the Upgrade Status module. This
module was built by Acquia. The module provides a graphical user
interface on top of drupal-check. The goal is to provide an
easy-to-use readiness assessment for your site's migration to Drupal
9.




Link: https://drupal.org/project/upgrade_status




Maybe also learn the background info of drupal-check reading Matt Glaman's blog post about Testing your Drupal code base for deprecated code usage with PHPStan.






share|improve this answer



























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "220"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f284474%2fhow-can-i-have-a-custom-module-checked-for-deprecated-functions%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4















    Read Dries Buytaert's blog post on How to prepare for Drupal 9



    drupal-check




    If you work on a Drupal site as a developer, run drupal-check. Matt
    Glaman (Centarro) developed a static PHP analysis tool called
    drupal-check, which you can run against your codebase to check for
    deprecated code. I recommend running drupal-check in an automated
    fashion as part of your development workflow.




    Link: https://github.com/mglaman/drupal-check



    Upgrade Status




    If you are a site owner, install the Upgrade Status module. This
    module was built by Acquia. The module provides a graphical user
    interface on top of drupal-check. The goal is to provide an
    easy-to-use readiness assessment for your site's migration to Drupal
    9.




    Link: https://drupal.org/project/upgrade_status




    Maybe also learn the background info of drupal-check reading Matt Glaman's blog post about Testing your Drupal code base for deprecated code usage with PHPStan.






    share|improve this answer





























      4















      Read Dries Buytaert's blog post on How to prepare for Drupal 9



      drupal-check




      If you work on a Drupal site as a developer, run drupal-check. Matt
      Glaman (Centarro) developed a static PHP analysis tool called
      drupal-check, which you can run against your codebase to check for
      deprecated code. I recommend running drupal-check in an automated
      fashion as part of your development workflow.




      Link: https://github.com/mglaman/drupal-check



      Upgrade Status




      If you are a site owner, install the Upgrade Status module. This
      module was built by Acquia. The module provides a graphical user
      interface on top of drupal-check. The goal is to provide an
      easy-to-use readiness assessment for your site's migration to Drupal
      9.




      Link: https://drupal.org/project/upgrade_status




      Maybe also learn the background info of drupal-check reading Matt Glaman's blog post about Testing your Drupal code base for deprecated code usage with PHPStan.






      share|improve this answer



























        4














        4










        4









        Read Dries Buytaert's blog post on How to prepare for Drupal 9



        drupal-check




        If you work on a Drupal site as a developer, run drupal-check. Matt
        Glaman (Centarro) developed a static PHP analysis tool called
        drupal-check, which you can run against your codebase to check for
        deprecated code. I recommend running drupal-check in an automated
        fashion as part of your development workflow.




        Link: https://github.com/mglaman/drupal-check



        Upgrade Status




        If you are a site owner, install the Upgrade Status module. This
        module was built by Acquia. The module provides a graphical user
        interface on top of drupal-check. The goal is to provide an
        easy-to-use readiness assessment for your site's migration to Drupal
        9.




        Link: https://drupal.org/project/upgrade_status




        Maybe also learn the background info of drupal-check reading Matt Glaman's blog post about Testing your Drupal code base for deprecated code usage with PHPStan.






        share|improve this answer













        Read Dries Buytaert's blog post on How to prepare for Drupal 9



        drupal-check




        If you work on a Drupal site as a developer, run drupal-check. Matt
        Glaman (Centarro) developed a static PHP analysis tool called
        drupal-check, which you can run against your codebase to check for
        deprecated code. I recommend running drupal-check in an automated
        fashion as part of your development workflow.




        Link: https://github.com/mglaman/drupal-check



        Upgrade Status




        If you are a site owner, install the Upgrade Status module. This
        module was built by Acquia. The module provides a graphical user
        interface on top of drupal-check. The goal is to provide an
        easy-to-use readiness assessment for your site's migration to Drupal
        9.




        Link: https://drupal.org/project/upgrade_status




        Maybe also learn the background info of drupal-check reading Matt Glaman's blog post about Testing your Drupal code base for deprecated code usage with PHPStan.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 16 at 12:21









        leymannxleymannx

        8,3205 gold badges36 silver badges70 bronze badges




        8,3205 gold badges36 silver badges70 bronze badges






























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Drupal Answers!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f284474%2fhow-can-i-have-a-custom-module-checked-for-deprecated-functions%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form