How to call basePath in Drupal 8 js ?

Hi Guys, 

I'm converting my Drupal 7 project to Drupal 8 and in Drupal 7 we are using Drupal.settings.basePath and basePath is set in drupal_add_js function which is deprecated in Drupal 8. 

So, How can I use this basePath in Drupal 8 js ?

Can I make ?

Hi Guys,

It is possible to call a twig file after clicking any button in Drupal 8?
if yes then how can I achieve this ?

How can I disable /admin/reports/status/php or where is the permission for which role can access?

Hi

Some of the users on my site can see /admin/reports/status/php.

I can't see how to disable or find a permission for this page.

Where can I control who can access /admin/reports/status/php?

Thanks

Stuck on installing Drupal 9

Back story, I have used Drupal since 6, had sites on 7 and currently have sites on 8. All were installed via cPanel and not composer or anything else.

Need some thoughts on how to enable users to control their own page display

Thanks for your time and thoughts.  I want to create a site where patrons have their own customizable page (node).  How feasible is it to create a handful of page layouts and have them pick one.  Once chosen they can then upload their own pics, write their own text and captions etc.  

How else would you go about designing this type of functionality in Drupal?  

Do any modules spring to mind perhaps?

How to create a custom form element in drupal8?

I am adding this new element but #theme_wrapper is not working, only title is showing button is not showing.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x