Matt Glaman: hook_update_N or hook_post_update_NAME

How to set default form fields value from controller

How to setup default form fields value from a form created in a controller? I tryed to set the $form_state param but it does not work. … $form_state = new FormState(); $form_state->set(‘myfield_1’, ‘car’);... read more
Matt Glaman: hook_update_N or hook_post_update_NAME

Entity REST

The module This module is based on Drupal’s core REST module. It exposes entities and their fields on a route. SoundCloud Repost Service SoundCloud Promotion Service Spotify Playlist Promotion Spotify Playlist Placements read more
Matt Glaman: hook_update_N or hook_post_update_NAME

Embed Views remove pager

I have embedded view in a node with following code: <?php $view = views_get_view(‘articles’); $view->set_items_per_page(1); $view->set_offset(2); print $view->preview(‘page’); $view->destroy(); ?> I just need to display only... read more