Skip to content
Snippets Groups Projects
Commit fa89331c authored by Paul Smith's avatar Paul Smith Committed by Yan Loetzer
Browse files

Issue #3292097: Plugin Exception

parent a8cf5aa6
Branches 2.0.x
No related tags found
1 merge request!1Issue #3292097: Plugin Exception
......@@ -5,7 +5,7 @@ namespace Drupal\flexiform\Plugin\Deriver;
use Drupal\Component\Plugin\Derivative\DeriverBase;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Plugin\Context\ContextDefinition;
use Drupal\Core\Plugin\Context\EntityContextDefinition;
use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\TranslationInterface;
......@@ -23,14 +23,14 @@ class FormEntityProfileTypeDeriver extends DeriverBase implements ContainerDeriv
*
* @var \Drupal\Core\Entity\EntityTypeManagerInterface
*/
protected $entityTypeManager;
protected EntityTypeManagerInterface $entityTypeManager;
/**
* The entity bundle info manager.
*
* @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface
*/
protected $entityBundleInfo;
protected EntityTypeBundleInfoInterface $entityBundleInfo;
/**
* Constructs new EntityViewDeriver.
......@@ -84,7 +84,7 @@ class FormEntityProfileTypeDeriver extends DeriverBase implements ContainerDeriv
),
'profile_type' => $bundle,
'context' => [
'user' => new ContextDefinition('entity:user', $this->t('Base User')),
'user' => new EntityContextDefinition('entity:user', $this->t('Base User')),
],
] + $base_plugin_definition;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment