1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace Drupal\statusmessage;
- use Drupal\Core\Database\Driver\mysql\Connection;
- use Drupal\Core\Entity\EntityTypeManager;
- use Drupal\Core\Entity\Query\QueryFactory;
- use Drupal\Core\Database\Database;
- use Drupal\flag\FlagService;
- /**
- * Class StatusService.
- *
- * @package Drupal\statusmessage
- */
- class StatusService {
- /**
- * Drupal\Core\Entity\EntityTypeManager definition.
- *
- * @var Drupal\Core\Entity\EntityTypeManager
- */
- protected $entity_type_manager;
- /**
- * Drupal\Core\Entity\Query\QueryFactory definition.
- *
- * @var Drupal\Core\Entity\Query\QueryFactory
- */
- protected $entity_query;
- /**
- * Drupal\flag\FlagService definition.
- *
- * @var Drupal\flag\FlagService
- */
- protected $flag;
- /**
- * Constructor.
- */
- public function __construct(EntityTypeManager $entity_type_manager, QueryFactory $entity_query, FlagService $flag) {
- $this->entity_type_manager = $entity_type_manager;
- $this->entity_query = $entity_query;
- $this->flag = $flag;
- }
- public function getMimeTypes() {
- return ['image/jpeg', 'image/png', 'application/octet-stream', 'video/mp4', 'text/plain', 'application/pdf', 'image/gif'];
- }
- }
|