Drupal 8 - drupal_set_message with a link

I'm writing a message to the user with drupal_set_message(). I'd like to include a link, but the link gets escaped and doesn't work.

How do I wrap the link inside the message so that it is not escaped, or, build some object that will be rendered as a working link?

Thanks.

Problem with saving my configs

Hi Forum,
for saving my settings. I´ve got a formular which works, when i do not use a prefill of the fields.
but when i use a prefilled formular i only get the defined values. Here my a example with a working empty field and a not working prefilled field:
that is my yaml (mymanager.settings.yml):

basePathempty: null
basePath: localhost

and here my controller:

drupal 8: get all values in a hook

In a hook I have an entity called adress. This has some entity reference fields. Some of this fields have multiple target_id.

I can get the first one from the field like so:

$a_id = $adress->field_a->target_id;

But how to get the the other values like in drupal7 with a foreach loop??

I'm new to d8.

Any hint is welcome!

Greetz maen

Libraries and Drupal 8

I installed Drupal 8 and that's works fine.
But I need the libraries module. It is not yet ready for Drupal 8.
Is there an alternative?
Willy

D8 -> Import CSV for my content type

Feeds module has not available for Drupal 8 yet. I will create a new Drupal 8 site and create a resume content type add fields to it. I have resumes by rows in excell format. What is the preferred way for automatically creating new contents for each row in my excell list in my case.

Please give me advise. I am in hurry :)

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x