Drupal 8  8.0.2
TestContent Class Reference
Inheritance diagram for TestContent:

Public Member Functions

 __construct (HttpKernelInterface $http_kernel)
 test1 ()
 test11 ()
 testAccount (UserInterface $user)
 subrequestTest (UserInterface $user)

Static Public Member Functions

static create (ContainerInterface $container)

Protected Attributes


Detailed Description

Test controllers that are intended to be wrapped in a main controller.

Constructor & Destructor Documentation

__construct ( HttpKernelInterface  $http_kernel)

Constructs a TestContent instance.

Member Function Documentation

static create ( ContainerInterface  $container)


subrequestTest ( UserInterface  $user)

Uses a subrequest to determine the content.

References AccountInterface\id(), and Drupal\request().

Here is the call graph for this function:

test1 ( )

Provides example content for testing route enhancers.

test11 ( )

Provides example content for route specific authentication.

string The user name of the current logged in user.

References Drupal\currentUser().

Here is the call graph for this function:

The documentation for this class was generated from the following file: