function EntityTypeInfo::create
Same name in other branches
- 4.x src/EntityTypeInfo.php \Drupal\devel\EntityTypeInfo::create()
Overrides ContainerInjectionInterface::create
File
-
src/
EntityTypeInfo.php, line 30
Class
- EntityTypeInfo
- Manipulates entity type information.
Namespace
Drupal\develCode
public static function create(ContainerInterface $container) : self {
$instance = new self();
$instance->currentUser = $container->get('current_user');
$instance->stringTranslation = $container->get('string_translation');
return $instance;
}