diff --git a/src/Plugin/Deriver/EntityFieldDeriver.php b/src/Plugin/Deriver/EntityFieldDeriver.php index 4e6875a..024de7f 100644 --- a/src/Plugin/Deriver/EntityFieldDeriver.php +++ b/src/Plugin/Deriver/EntityFieldDeriver.php @@ -7,48 +7,12 @@ namespace Drupal\ctools\Plugin\Deriver; -use Drupal\Component\Plugin\Derivative\DeriverBase; -use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Plugin\Context\ContextDefinition; -use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface; -use Drupal\Core\StringTranslation\StringTranslationTrait; -use Drupal\Core\StringTranslation\TranslationInterface; -use Symfony\Component\DependencyInjection\ContainerInterface; /** * Provides entity view block definitions for each entity type. */ -class EntityFieldDeriver extends DeriverBase implements ContainerDeriverInterface { - - use StringTranslationTrait; - - /** - * The entity manager. - * - * @var \Drupal\Core\Entity\EntityManagerInterface - */ - protected $entityManager; - - /** - * Constructs new EntityFieldDeriver. - * - * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager - * The entity manager. - */ - public function __construct(EntityManagerInterface $entity_manager, TranslationInterface $string_translation) { - $this->entityManager = $entity_manager; - $this->stringTranslation = $string_translation; - } - - /** - * {@inheritdoc} - */ - public static function create(ContainerInterface $container, $base_plugin_id) { - return new static( - $container->get('entity.manager'), - $container->get('string_translation') - ); - } +class EntityFieldDeriver extends EntityDeriverBase { /** * {@inheritdoc}