Lines: 100.00%
| Line | Hits | Source |
|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Drupal\visitors\Plugin\VisitorsLocation; | |
| 6 | ||
| 7 | use Drupal\Component\Plugin\PluginBase; | |
| 8 | use Drupal\Core\StringTranslation\TranslatableMarkup; | |
| 9 | use Drupal\visitors\Attribute\VisitorsLocation; | |
| 10 | use Drupal\visitors\Location\LocationPlace; | |
| 11 | use Drupal\visitors\VisitorsLocationPluginInterface; | |
| 12 | ||
| 13 | /** | |
| 14 | * Stores no place on the visit. | |
| 15 | */ | |
| 16 | #[VisitorsLocation( | |
| 17 | id: 'none', | |
| 18 | label: new TranslatableMarkup('None'), | |
| 19 | weight: 0, | |
| 20 | )] | |
| 21 | final class None extends PluginBase implements VisitorsLocationPluginInterface { | |
| 22 | ||
| 23 | /** | |
| 24 | * {@inheritdoc} | |
| 25 | */ | |
| 26 | public function getLocation(string $ip, array $languages): ?LocationPlace { | |
| 27 | 1 | return NULL; |
| 28 | } | |
| 29 | ||
| 30 | } |