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

[current-page:title] token in Custom Block

Posted 1 day 13 hours ago by (xorgev) in How-To and Troubleshooting

Maintenance mode not working

Posted 1 day 19 hours ago by (kgolding) in How-To and Troubleshooting

leaflet widget stopped working

Posted 3 days 1 hour ago by (geoma) in How-To and Troubleshooting

Recent comments

I tried it and it worked. Thank you very much.

Posted 1 day 12 hours ago by (xorgev) on:

[current-page:title] token in Custom Block

I think if you use the Token Block modules it should work better as it recognises the context it is in.

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

[current-page:title] token in Custom Block

Thank you, I did clear the cache, but have now realised the hosting platform had its cache service enable.

Posted 1 day 18 hours ago by (kgolding) on:

Maintenance mode not working

Powered by Backdrop CMS

Stay connected

Sign up for our newsletter

Footer Menu

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