Change the node's link(URL) in a node list.

When I visit a node list page e.g. https://my_site/en/admin/content/my_nodes with default English language all links for each node in the list shown with English prefix "en" in its URL i.e. https://my_site/en/my_node/custom_alias/50 , so far so good ...                      ...      

Why do some keys in a .routing.yml file start with an underscore?

The following is an example .routing.yml file:

example.content:
  path: '/example' 
  defaults: 
    _controller: '\Drupal\example\Controller\ExampleController::content' 
    _title: 'Hello World'
  requirements: 
    _permission: 'access content' 

As you can see, the keys '_controller', '_title' and '_permission' begin with an underscore.

I already figured out, that every key without an underscore under the 'defaults'-key is considered to be a parameter to the controller.

How to create field_collection_item in DRUPAL 8 ?

Hi guys,

In d7 field_collection_item can be created with
 

$fc_item = entity_create('field_collection_item', array('field_name' => 'field_pro_block'));

and to assign the block to the node can be done by this
 

$fc_item->setHostEntity('node', $node);

and to save the entity can be done with this
 

$fc_item->save(TRUE);

So, My question is how can I achieve the same thing in Drupal 8 ?

Error When MS Office Program Name (Excel, Word, Outlook, PowerPoint) In Article Title

This is a weird one.  It only occurs with one of my content types, "How To Article".

Sitemap is not updating all the URLs

Hi,

my website is on Drupal 8 and I am using a sitemap https://www.drupal.org/project/xmlsitemap/releases/8.x-1.4 but it's not working, actually, my website has around 2k URLs but in sitemap 1555 URL is showing. I tried all the things to update the all URLs in the sitemap. 

You can check my website in my profile!

Anybody can help me?

Best Regards

Math function.

Hello. 

I have this code in hook form alter:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x