Skip to content

Instantly share code, notes, and snippets.

@Jaesin
Last active August 29, 2015 14:17
Show Gist options
  • Save Jaesin/f412f5e78cc36b490067 to your computer and use it in GitHub Desktop.
Save Jaesin/f412f5e78cc36b490067 to your computer and use it in GitHub Desktop.
Let PHPStorm know what gets served from a factory method.
<?php
/** @var \Drupal\Core\Entity\EntityManager $entity_manager */
$entity_manager = \Drupal::service('entity.manager');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment