1 | <?php |
||
16 | class FieldFormatterDeriver extends DeriverBase implements ContainerDeriverInterface { |
||
17 | |||
18 | /** |
||
19 | * The manager for formatter plugins. |
||
20 | * |
||
21 | * @var \Drupal\Core\Field\FormatterPluginManager. |
||
22 | */ |
||
23 | protected $formatterManager; |
||
24 | |||
25 | /** |
||
26 | * The config factory service. |
||
27 | * |
||
28 | * @var \Drupal\Core\Config\ConfigFactoryInterface |
||
29 | */ |
||
30 | protected $configFactory; |
||
31 | |||
32 | /** |
||
33 | * Constructs new FieldFormatterEntityEmbedDisplayBase. |
||
34 | * |
||
35 | * @param \Drupal\Core\Field\FormatterPluginManager $formatter_manager |
||
36 | * The field formatter plugin manager. |
||
37 | * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory |
||
38 | * A config factory for retrieving required config objects. |
||
39 | */ |
||
40 | public function __construct(FormatterPluginManager $formatter_manager, ConfigFactoryInterface $config_factory) { |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public static function create(ContainerInterface $container, $base_plugin_id) { |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | * |
||
58 | * @throws \LogicException |
||
59 | * Throws an exception if field type is not defined in the annotation of the |
||
60 | * Entity Embed Display plugin. |
||
61 | */ |
||
62 | public function getDerivativeDefinitions($base_plugin_definition) { |
||
82 | |||
83 | } |
||
84 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..