Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I downloaded and installed the Acquia Dev Desktop. I had been using 7.42 but specified 8.0.2 I used all the defaults and installation was normally but while it was creating the initial website I got this message:
I wish to add some field to some menu, to add some specific data to some specific link (images, textes, class..etc) and reuse it in my menu's tamplate.
How to check if anchor tag in a generated menu link (eg. by main navigation block) has a certain class. For the container li there is the item['attributes']->hasClass() method. However there is nothing of the form item['url']->hasClass(). Can item['url']['urlGenerator'] has something to offer in this regard ?
I hope this question is not too 'newbie' because I'm not already comfortable with the documentation.
I need an example of a datetime field in a drupal 8 module, particularly for the baseFieldDefinitions() function of the entity class + the buildRow() function of the listing class. I did not find a datetime field used in core modules nor described in this forum.