Example #1
0
 /**
  * Constructs a new UserListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
  *   The entity query factory.
  * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
  *   The date formatter service.
  * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination
  *   The redirect destination service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory, DateFormatterInterface $date_formatter, RedirectDestinationInterface $redirect_destination)
 {
     parent::__construct($entity_type, $storage);
     $this->queryFactory = $query_factory;
     $this->dateFormatter = $date_formatter;
     $this->redirectDestination = $redirect_destination;
 }
 /**
  * Constructs a new instance.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $payment_storage
  *   The payment storage.
  * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
  *   The string translator.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler.
  * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination
  *   The redirect destination.
  * @param \Drupal\Core\DateTime\DateFormatter $date_formatter
  *   The date formatter.
  * @param \Drupal\Core\Entity\EntityStorageInterface $currency_storage
  *   The currency storage.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $payment_storage, TranslationInterface $string_translation, ModuleHandlerInterface $module_handler, RedirectDestinationInterface $redirect_destination, DateFormatter $date_formatter, EntityStorageInterface $currency_storage)
 {
     parent::__construct($entity_type, $payment_storage);
     $this->currencyStorage = $currency_storage;
     $this->dateFormatter = $date_formatter;
     $this->moduleHandler = $module_handler;
     $this->redirectDestination = $redirect_destination;
     $this->stringTranslation = $string_translation;
 }
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
 {
     parent::__construct($entity_type, $storage);
     $type = $entity_type->id();
     $entity_info = \Drupal\myeck\MyeckConfig::getForListBuilder($type);
     $this->entity_label = empty($entity_info['entity_label']) ? '' : $entity_info['entity_label'];
     $this->entity_id = empty($entity_info['entity_id']) ? 'id' : $entity_info['entity_id'];
     $this->show_fields = array($this->entity_id => $type . ' ID');
     $this->show_fields += empty($entity_info['show_fields']) ? array() : $entity_info['show_fields'];
 }
Example #4
0
 /**
  * @inheritDoc
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, DateFormatterInterface $date_formatter)
 {
     parent::__construct($entity_type, $storage);
     $this->dateFormatter = $date_formatter;
 }
Example #5
0
 /**
  * Constructs a new UserListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
  *   The entity query factory.
  * @param \Drupal\Core\Datetime\Date $date_formatter
  *   The date formatter service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory, DateFormatter $date_formatter)
 {
     parent::__construct($entity_type, $storage);
     $this->queryFactory = $query_factory;
     $this->dateFormatter = $date_formatter;
 }
 /**
  * Constructs a new EntityListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\scheduled_updates\UpdateUtils $updateUtils
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UpdateUtils $updateUtils) {
   parent::__construct($entity_type, $storage);
   $this->updateUtils = $updateUtils;
 }
 /**
  * Constructs a new OrderListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
  *   The entity type manager.
  * @param \Drupal\Core\Datetime\DateFormatter $date_formatter
  *   The date service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, DateFormatter $date_formatter)
 {
     parent::__construct($entity_type, $entity_type_manager->getStorage($entity_type->id()));
     $this->dateFormatter = $date_formatter;
 }
Example #8
0
 /**
  * Constructs a new UserListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Entity\Query\QueryFactory $query_factory
  *   The entity query factory.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, QueryFactory $query_factory)
 {
     parent::__construct($entity_type, $storage);
     $this->queryFactory = $query_factory;
 }
 /**
  * Constructs a new RegistrationListBuilder object.
  *
  * {@inheritdoc}
  *
  * @param \Drupal\rng\EventManagerInterface $event_manager
  *   The RNG event manager.
  * @param \Drupal\Core\Routing\RedirectDestinationInterface $redirect_destination
  *   The redirect destination service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EventManagerInterface $event_manager, RedirectDestinationInterface $redirect_destination)
 {
     parent::__construct($entity_type, $storage);
     $this->eventManager = $event_manager;
     $this->redirectDestination = $redirect_destination;
 }
 /**
  * Constructs a new NodeListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage)
 {
     parent::__construct($entity_type, $storage);
 }
 /**
  * Constructs a new RegistrationListBuilder object.
  *
  * {@inheritdoc}
  *
  * @param \Drupal\rng\EventManagerInterface $event_manager
  *   The RNG event manager.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EventManagerInterface $event_manager)
 {
     parent::__construct($entity_type, $storage);
     $this->eventManager = $event_manager;
 }
Example #12
0
 /**
  * Constructs a new ContactListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Routing\UrlGeneratorInterface $url_generator
  *   The url generator.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, UrlGeneratorInterface $url_generator)
 {
     parent::__construct($entity_type, $storage);
     $this->urlGenerator = $url_generator;
 }
 /**
  * Constructs a new EntityListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param EntityLayoutService $entityLayoutService
  *   The entity layout service class.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, EntityLayoutService $entityLayoutService)
 {
     parent::__construct($entity_type, $storage);
     $this->entityLayoutService = $entityLayoutService;
 }
Example #14
0
 /**
  * Constructs a new NodeListBuilder object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityStorageInterface $storage
  *   The entity storage class.
  * @param \Drupal\Core\Datetime\Date $date_service
  *   The date service.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, Date $date_service)
 {
     parent::__construct($entity_type, $storage);
     $this->dateService = $date_service;
 }