Tag: drupal-8

59 votes
9 answers
1.3K views
Creating a link from node ID in Drupal 8

I am checking out Drupal 8 and try to generate a link based on the node ID of an article. In Drupal 7 it is s

avatar
Boyd
0 1 0 9
asked 07 September, 2021
55 votes
4 answers
1.9K views
How to throw 404 error in Drupal module?

I need to throw 404 error in module. Or may be there are any possibility to set required option for menu hook?

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
59 votes
7 answers
2.6K views
Drupal 8 images with image style

In drupal 7, i use function image_style_url('style', uri) to generate new image with style and retur

avatar
Ali
0 1 0 9
asked 07 September, 2021