Skip to content

PropertyBrands/btt-drupal8-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 

Repository files navigation

Links and Resources for Drupal 8

$serializer = \Drupal::service('serializer');
// Useful for `drupalSettings` or PHP
$arrayOfData = $serializer->normalize($entity, 'json', ['plugin_id' => 'entity']);
// Useful for API responses or other output scenarios
$jsonString = $serializer->serialize($entity, 'json', ['plugin_id' => 'entity'])

About

Links and other things that are useful for Drupal 8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published