public function EntityTypeInfo::__construct in View Modes Display 8.2
EntityTypeInfo constructor.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: Current user.
File
- src/
EntityTypeInfo.php, line 42
Class
- EntityTypeInfo
- Manipulates entity type information.
Namespace
Drupal\view_modes_displayCode
public function __construct(AccountInterface $current_user, EntityDisplayRepositoryInterface $entityDisplayRepository) {
$this->currentUser = $current_user;
$this->entityDisplayRepository = $entityDisplayRepository;
}