public function ViewModeDeriver::__construct in Entity Embed 8
Constructs a ViewModeDeriver object.
Parameters
\Drupal\Core\Entity\EntityDisplayRepositoryInterface $entity_display_repository: The entity display repository.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
File
- src/
Plugin/ Derivative/ ViewModeDeriver.php, line 40
Class
- ViewModeDeriver
- Provides Entity Embed Display plugin definitions for view modes.
Namespace
Drupal\entity_embed\Plugin\DerivativeCode
public function __construct(EntityDisplayRepositoryInterface $entity_display_repository, ConfigFactoryInterface $config_factory) {
$this->entityDisplayRepository = $entity_display_repository;
$this->configFactory = $config_factory;
}