public function FieldFormatterDeriver::__construct in Entity Embed 8
Constructs new FieldFormatterEntityEmbedDisplayBase.
Parameters
\Drupal\Core\Field\FormatterPluginManager $formatter_manager: The field formatter plugin manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
File
- src/
Plugin/ Derivative/ FieldFormatterDeriver.php, line 40
Class
- FieldFormatterDeriver
- Provides Entity Embed Display plugin definitions for field formatters.
Namespace
Drupal\entity_embed\Plugin\DerivativeCode
public function __construct(FormatterPluginManager $formatter_manager, ConfigFactoryInterface $config_factory) {
$this->formatterManager = $formatter_manager;
$this->configFactory = $config_factory;
}