You are here

private function BibciteEntityController::container in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Controller/BibciteEntityController.php \Drupal\bibcite_entity\Controller\BibciteEntityController::container()

Returns the service container.

This method is marked private to prevent sub-classes from retrieving services from the container through it. Instead, \Drupal\Core\DependencyInjection\ContainerInjectionInterface should be used for injecting services.

Copy of method from original parent class.

Return value

\Symfony\Component\DependencyInjection\ContainerInterface The service container.

Overrides ControllerBase::container

See also

ControllerBase

File

modules/bibcite_entity/src/Controller/BibciteEntityController.php, line 70

Class

BibciteEntityController
Returns responses for Bibcite routes.

Namespace

Drupal\bibcite_entity\Controller

Code

private function container() {
  return \Drupal::getContainer();
}