Get defaul value of entity reference field

Dear All, 

I have entity bundle: "trainings" and dropdown field is training_type. How can i get the defaule values of this field.

i can get the selected value code but i need to get all default values in order to show the label.

Thanking you in advance.

Howto show an asterisk next to a field of a Webform that is mandatory?

Howto show an asterisk next to a field of a Webform that is mandatory?

How to display an icon when the start date is greater than the current date ?

I have a date field in my views, I want to display the fas fa-stopwatch icon when the start date is greater than the current date.

How to do this ?

{% if date(field_pop_up_product_date_1__value) < date('now') %}
  <i class="fas fa-stopwatch"></i>
{% else %}
  <i class="fas fa-calendar-alt"></i>
{% endif %}
Visible du :<br>
{{ field_pop_up_product_date }}

My code does not work, look at the dates :

How to display only messages created after the creation date of the current user's account ?

I have created a Message view. Message module for Drupal 8 :

https://www.drupal.org/project/message

I want to display only messages created after the creation date of the current user's account.

I looked in the filters of my sight, but I couldn't find anything.

How can I do this ?

https://i.stack.imgur.com/EBngf.png

How to export Roles with Permissions

How to export roles with permission i am trying with features module but it only export the roles not the permissions and also there is no tab for permission there

please suggest the quick solution

How to export Roles with Permissions

How to export roles with permission i am trying with features module but it only export the roles not the permissions and also there is no tab for permission there

please suggest the quick solution

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x