/** * Constructs a new ViewUIConverter. * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \Drupal\user\SharedTempStoreFactory $temp_store_factory * The factory for the temp store object. */ public function __construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory) { parent::__construct($entity_manager); $this->tempStoreFactory = $temp_store_factory; }
/** * Constructs a new EntityConverter. * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory * The config factory. * @param \Drupal\Core\Routing\AdminContext $admin_context * The route admin context service. */ public function __construct(EntityManagerInterface $entity_manager, ConfigFactoryInterface $config_factory, AdminContext $admin_context) { parent::__construct($entity_manager); $this->configFactory = $config_factory; $this->adminContext = $admin_context; }
/** * EntityRevisionConverter constructor. * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager, needed by the parent class. * @param \Drupal\content_moderation\ModerationInformationInterface $moderation_info * The moderation info utility service. * * @todo: If the parent class is ever cleaned up to use EntityTypeManager * instead of Entity manager, this method will also need to be adjusted. */ public function __construct(EntityManagerInterface $entity_manager, ModerationInformationInterface $moderation_info) { parent::__construct($entity_manager); $this->moderationInformation = $moderation_info; }
/** * Constructs a new SearchApiConverter. * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. * @param \Drupal\user\SharedTempStoreFactory $temp_store_factory * The factory for the temp store object. * @param \Drupal\Core\Session\AccountInterface $user * The current user. */ public function __construct(EntityManagerInterface $entity_manager, SharedTempStoreFactory $temp_store_factory, AccountInterface $user) { parent::__construct($entity_manager); $this->tempStoreFactory = $temp_store_factory; $this->currentUser = $user; }
public function __construct(EntityManagerInterface $entity_manager) { parent::__construct($entity_manager); }