Created
September 19, 2017 11:15
-
-
Save suresh-kumara-gist/269333af156ecf425a4f5faaa4eba9d7 to your computer and use it in GitHub Desktop.
Drupal 8 render service, list item , markup create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $user_list[] = "$user->name ($user->mail) last active on " . | |
| \Drupal::service('date.formatter')->format($user->access, 'long'); | |
| $data = ['#theme'=>'item_list','#type'=>'ul','#items'=>$user_list]; | |
| $user_list = \Drupal::service('renderer')->renderRoot($data); | |
| \Drupal\Core\Render\Markup::create(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment