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

Looking for examples of (local) news websites running on BackdropCMS

Posted 4 days 4 hours ago by Erik Wesselius (zilvervos) in Other

CKEditor5: Here's how to prevent "Select Image from Library" from appearing

Posted 6 days 1 hour ago by (Chrys) in How-To and Troubleshooting

Link field in a Content Type is malformed for annonymous user- Permission issue?

Posted 1 week 1 day ago by (Chrys) in How-To and Troubleshooting

Recent comments

Funnily we launched a new Dutch website this very week, milieucafe.nl  It is not a 'news' website but operates in the context of local government. The layout focuses on content instead of...

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

Looking for examples of (local) news websites running on BackdropCMS

The answer is off topic, but I'll add a little. 1. Backend. Why you don't need links to other websites: Since you know the structure of your site and content, you can decide for...

Posted 3 days 7 hours ago by (Enthusiast) on:

Looking for examples of (local) news websites running on BackdropCMS

Hi Chrys, AI isn't always your best friend. A form alter hook is correct, but hiding by CSS isn't ideal. You could look at how the TinyMCE integration does it, which provides hiding...

Posted 3 days 13 hours ago by (indigoxela) on:

CKEditor5: Here's how to prevent "Select Image from Library" from appearing

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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