class WootManager

A simulated service for wooting. @todo throw useful exceptions

Namespace

Drupal\woot

Hierarchy

Expanded class hierarchy of WootManager

Members

Contains filters are case sensitive
Name Modifierssort descending Type Description
WootManager::$currentUser protected property The current user.
WootManager::__construct public function Constructs the default content manager.
WootManager::woof public function Woof mightily. Note that we can include commands directly inside a service class.

File

tests/resources/modules/d8/woot/src/WootManager.php, line 24
Contains \Drupal\woot\WootManager.

View source
class WootManager {
  /**
   * The current user.
   *
   * @var \Drupal\Core\Session\AccountInterface
   */
  protected $currentUser;

  /**
   * Constructs the default content manager.
   *
   * @param \Drupal\Core\Session|AccountInterface $current_user
   *   The current user.
   */
  public function __construct(AccountInterface $current_user) {
    $this->currentUser = $current_user;
  }

  /**
   * Woof mightily. Note that we can include commands directly
   * inside a service class.
   *
   * @command woof
   * @aliases wf
   */
  public function woof() {
    return 'Woof!';
  }
}