public function EntityTestController::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/entity_test/src/Controller/EntityTestController.php \Drupal\entity_test\Controller\EntityTestController::__construct()
Constructs a new EntityTestController.
Parameters
\Drupal\Core\Entity\Query\QueryFactory: The entity query factory.
File
- core/
modules/ system/ tests/ modules/ entity_test/ src/ Controller/ EntityTestController.php, line 34 - Contains \Drupal\entity_test\Controller\EntityTestController.
Class
- EntityTestController
- Controller routines for entity_test routes.
Namespace
Drupal\entity_test\ControllerCode
public function __construct(QueryFactory $entity_query_factory) {
$this->entityQueryFactory = $entity_query_factory;
}