Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- services:
- awn.service:
- class: DrupalawntrackAwnService
- arguments: []
- namespace Drupalawntrack;
- /**
- * Class AwnService.
- */
- class AwnService {
- /**
- * Constructs a new AwnService object.
- */
- public function __construct() {
- }
- public function sayHello() {
- $result = 'say hello';
- return $result;
- }
- }
- $import_service = Drupal::service('awn.service');
- dump($import_service);die;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement