Skip to main content
backdrop Backdrop Forum
  • Welcome!
    • Login
    • Register
  • Forum
  • FAQ
  • Following
  • About
  • Wishlist
  1. Home »
  2. [DX][META] Introduce functions similar to views_get_views_as_options() for other things

[DX][META] Introduce functions similar to views_get_views_as_options() for other things

While working on https://github.com/backdrop-contrib/headless/issues/9, I noticed that we have views_get_views_as_options(), but there is no respective node_get_node_types_as_options() or taxonomy_get_vocabularies_as_options() etc.

We should introduce such functions to improve DX and provide consistency in code.

GitHub Link: 
https://github.com/backdrop/backdrop-issues/issues/3545
GitHub Issue #: 
3545
  • Log in or register to post comments

Weekly office hours

Bring your questions to our weekly virtual office hours, every Wednesday. Everyone is welcome.

Recent topics

Hello - Glad to met Backdrop

Posted 4 days 19 hours ago by (BKaernel) in Requests and Feedback

Backlinks for Entity Reference?

Posted 1 week 57 min ago by (opentype) in How-To and Troubleshooting

Allow admin to select admin language seperate from front end language (multilingual)

Posted 2 weeks 2 days ago by (stpaultim) in How-To and Troubleshooting

Recent comments

This saved my day, exactly what I had cooked up but I could not find the necessary settings. Thanks a bundle :)

Posted 2 days 20 hours ago by (Ben Varkenshand) on:

How to relate one view to different nodes?

Welcome to Backdrop and I'm glad you are enjoying using it. If you need help feel free to posts questions in the  'How-To and Troubleshooting' thread. 

Posted 3 days 13 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:

Hello - Glad to met Backdrop

I have just received notification from my hosting provider of a similar upgrade, ie MariaDB 10.3 to 10.6 and later to 10.11. Is there any reason to suppose this will cause any problems...

Posted 3 days 18 hours ago by Martin Jones (nattyweb) on:

Installation Requirements

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org