Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. services:
  2. awn.service:
  3. class: DrupalawntrackAwnService
  4. arguments: []
  5.  
  6. namespace Drupalawntrack;
  7.  
  8. /**
  9. * Class AwnService.
  10. */
  11. class AwnService {
  12.  
  13. /**
  14. * Constructs a new AwnService object.
  15. */
  16. public function __construct() {
  17.  
  18. }
  19.  
  20. public function sayHello() {
  21. $result = 'say hello';
  22. return $result;
  23. }
  24.  
  25. }
  26.  
  27. $import_service = Drupal::service('awn.service');
  28. dump($import_service);die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement