daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top