Porting usage of node_access_acquire_grants() from D7 to D8

The function node_access_acquire_grants() from Drupal 7 is not in Drupal 8. The only reference I have found is a comment in core/modules/node/src/NodeAccessControlHandlerInterface.php line 43: Note: Don't call this function directly from a contributed module. Call node_access_acquire_grants() instead.

Any suggestions or pointers on how to achieve the same in Drupal 8?

CSS file not loaded on Stark theme

Hi!

So i installed drupal yesterday, and activated/installed the stark theme as i want to design it myself. I have to state, that i'm new and doesnt now anything about drupal. I then went into the core, and found stark theme. I then went into the css folder for stark, changed the css filename to something i prefer, and changed the name in the libraries.yml file. The styles i then added to the css file, which i renamed, isn't getting loaded. I have cleared caches and disabled aggregated JS and CSS.

My libraries.yml file: (changed it back to how I think it was before)

The "text_textfield" plugin does not exist. in Drupal\Core\Plugin\DefaultPluginManager-

I am trying to create a module that creates a new content type and when I try to install the module I am getting the error below. This is from a configuration that I created by hand. I also created a configuration using the UI to create a content type, exported that, uninstalled and the attempted to install with the same result. I have Drupal 8.0.5 installed both on a Mac and a Linux system, both installations have the same problem.

Any suggestions on how to proceed?

thanks,
Chris Marshall

admin/config/people/accounts: ERROR: body uses unknown tokens: [site:account-name].

Hi all,

I would like to change, how new accounts are registered, but cannot save the changes i made. Drupal thinks, unknown tokens were use. But i never touched the messages such as in "Welcome, new user" and so on.
I have never enterded that anywhere and do not see this words. Even the search-function of my browser (Chrome: F3) finds [site:account-name] only in this error message on the page.
Any hints?

Thanks a lot
frank

insert pictures from my comouter within posts in Drupal 8

I need a module or combination of modules installed so that:

  • Let me add several pictures within body text in articles.
  • Be able to upload pictures from my computer.
  • Have fully responsive images.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x