D8: Implementing hook_library_info() to include jquery in a Bartik subtheme

I have a subtheme of Bartik for which I need to add some jquery. I can successfully include my theme's js file by implementing hook_library_info(), but specifying dependencies therein does not load the dependent files.

If I am logged in and running toolbar module, my jquery runs fine because jquery is included (by toolbar or something else). If I log out, jquery is not loaded as a dependency.

Are there any known problems with hook_library_info() dependencies in subthemes?

PHP Fatal Error: Call to Undefined Function Module_list

Hi there,

I've been trying, rather unsuccessfully, to upload Drupal to my server and get to work on my site. When I go to my domain.com/install.php I'm seeing a blank white screen (nothing on the page source) and the log says:
PHP Fatal error: Call to undefined function module_list() in /mnt/stor08-wc1-ord1/694335/xxxxxx/www.domain.com/web/content/includes/install.core.inc on line 260

Now, logic leads me to believe there is an issue on line 260 of the install.core.inc file, but I have no idea what that error is or how it got there.

Blog on routing in Drupal 8

Interested in learning about Drupal 8? Have a look at our latest blog on http://cipix.nl/understanding-drupal-8-part-3-routing

Drupal REST access to content by path

Dear colleagues,
We need to use Drupal as REST CMS service that will provide hierarchically organized content (html, images etc.) to our application.
After a quick jump to some pages by keywords Drupal & REST, I have found that native Drupal REST module provides access to nodes by URL that contans ID assigned by server, like: http://host.com/rest/node/22

Drupal 8 Theming Cheatsheet

Hi everyone, I have created a draft of the upcoming Drupal 8 php variables cheat sheet from the .html.twig files for a Google Code-In 2013 task. Hope it helps! There's a great one for D7 here.

Adding custom javascript files to a theme

I have tried searching on how to do this, but there seems to be some contradictory results. Could someone tell me on how to add your own custom written javascript files to a theme for drupal 8?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x