You are here

private function Link::container in Colossal Menu 8

Same name and namespace in other branches
  1. 2.x src/Entity/Link.php \Drupal\colossal_menu\Entity\Link::container()

Returns the service container.

This method is marked private to prevent sub-classes from retrieving services from the container through it.

Return value

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

File

src/Entity/Link.php, line 601

Class

Link
Defines the Link entity.

Namespace

Drupal\colossal_menu\Entity

Code

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