D8 programatically create node with taxonomy terms

Hi,

In Drupal 8 I am able to create new nodes, but I cannot figure out how to populate a field referencing taxonomy terms.

$edit_node = array(
...
'field_category' => array('x-default' => array(array('target_id' => 48, 'target_type' => 'taxonomy_term')));
...
);
$node = entity_create('node', $edit_node);
$node->save();

The node is created, but I see no traces of the terms in the database.

Waiting for Drupal 8?

Hi to everyone :)
This is my first question here and I hope you can give me an advice.

I have a new project that has to be online in summer this year 2015. For this new project Drupal seems to be the best cms.
What I see now is that Drupal 7 is - well - old. What I read about Drupal 8 sounds great.

The question is - should I wait for Drupal 8? Does it really make sense to build up a site with Drupal 7 right now?

Table users_roles not exists when upgrading to beta4

Hi everybody,

When I upgrade my drupal site to beta4 release, it says that table user__roles is not exits.

It's look like that new beta version alter table name from users_roles to user__roles. how is possible to apply this change (How is possible to migrate schema of drupal to latest version).

Thanks

Looking for freelance CSS/Bootstrap hero

Freelance CSS/Bootstrap wizard.

How to add external js/css in drupal 8 Custom module.

I need to add Google maps JavaScript API 3 js into my drupal 8 Custom module. the script i want to add is -
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=places"></script>

Custom Blocks not rendering in D8

I am playing around with the Drupal 8 beta. I've created a couple of custom blocks - just text blocks basically - and added them to the block layout. They do not seem to be rendering on the page at all, however.

I've already checked the obvious things:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x