diff --git a/src/CheckAgentServices.php b/src/CheckAgentServices.php index 170d51e52891cbb3b18d230217e02d8521e3874e..1230a874f1fe90726b467cb9bea3e0a9aa331c93 100644 --- a/src/CheckAgentServices.php +++ b/src/CheckAgentServices.php @@ -5,7 +5,7 @@ namespace Drupal\user_agent_class; use Drupal\Core\Entity\EntityTypeManagerInterface; /** - * Class CheckAgentServices. + * Service for checking user agents. */ class CheckAgentServices implements CheckAgentServicesInterface { diff --git a/src/CheckAgentServicesInterface.php b/src/CheckAgentServicesInterface.php index 7552e03b4a778276fb6e102654a42792a6ae7137..9263a0c2dc2e369aa8094b357af6ce100aad1aaa 100644 --- a/src/CheckAgentServicesInterface.php +++ b/src/CheckAgentServicesInterface.php @@ -3,7 +3,7 @@ namespace Drupal\user_agent_class; /** - * Interface CheckAgentServicesInterface. + * Interface for checking user agents. */ interface CheckAgentServicesInterface { diff --git a/src/Controller/CheckUserAgentController.php b/src/Controller/CheckUserAgentController.php index 52d5efcd0584b40834ee67381e95b4ea4d2d081f..44b08007afa0b4889496977cdad25242213a0aac 100644 --- a/src/Controller/CheckUserAgentController.php +++ b/src/Controller/CheckUserAgentController.php @@ -2,12 +2,12 @@ namespace Drupal\user_agent_class\Controller; +use Drupal\Component\Utility\Xss; use Drupal\Core\Controller\ControllerBase; use Symfony\Component\HttpFoundation\Request; -use Drupal\Component\Utility\Xss; /** - * Class CheckUserAgentController. + * Controller for checking and displaying the current user agent string. */ class CheckUserAgentController extends ControllerBase { diff --git a/src/EventSubscriber/UserAgentSubscriber.php b/src/EventSubscriber/UserAgentSubscriber.php index 6f09a68aca8dd9100e64cbf5a9ff5acf513aba18..f2c0b88dee12e581705a82ff7166b7de7a361d4e 100644 --- a/src/EventSubscriber/UserAgentSubscriber.php +++ b/src/EventSubscriber/UserAgentSubscriber.php @@ -2,15 +2,15 @@ namespace Drupal\user_agent_class\EventSubscriber; -use Symfony\Component\HttpKernel\KernelEvents; -use Symfony\Component\EventDispatcher\EventSubscriberInterface; -use Symfony\Component\HttpKernel\Event\RequestEvent; use Drupal\Component\Utility\Xss; -use Drupal\user_agent_class\CheckAgentServices; use Drupal\Core\Config\ConfigFactory; +use Drupal\user_agent_class\CheckAgentServices; +use Symfony\Component\EventDispatcher\EventSubscriberInterface; +use Symfony\Component\HttpKernel\Event\RequestEvent; +use Symfony\Component\HttpKernel\KernelEvents; /** - * Class UserAgentSubscriber. + * Subscriber to tracks user agent class based on request headers. */ class UserAgentSubscriber implements EventSubscriberInterface { diff --git a/src/Form/DeviceEntityForm.php b/src/Form/DeviceEntityForm.php index 4278b2b03561239099bc1a1e0b3e2bfdb2e225ba..5157c12dd7fd29c8d62a31ea64ceb24ac2460a4d 100644 --- a/src/Form/DeviceEntityForm.php +++ b/src/Form/DeviceEntityForm.php @@ -6,7 +6,7 @@ use Drupal\Core\Entity\EntityForm; use Drupal\Core\Form\FormStateInterface; /** - * Class DeviceEntityForm. + * Defines the DeviceEntityForm class for configuring device entities. */ class DeviceEntityForm extends EntityForm { diff --git a/src/Form/ProvideForm.php b/src/Form/ProvideForm.php index 40ab700fb0451df63757f1678535c7cc5b3d7806..1e9e2cf64ce9209663fc74e2e44324b6f242926d 100644 --- a/src/Form/ProvideForm.php +++ b/src/Form/ProvideForm.php @@ -6,7 +6,7 @@ use Drupal\Core\Form\ConfigFormBase; use Drupal\Core\Form\FormStateInterface; /** - * Class ProvideForm. + * Implements a form for configuring user agent retrieval responsibility. */ class ProvideForm extends ConfigFormBase { diff --git a/src/Form/UserAgentEntityForm.php b/src/Form/UserAgentEntityForm.php index cc47f110293c2616fed02ae16d49fc07dd80b926..3bd0cb1ce78263e0b5c6a69f700cb79759b8e399 100644 --- a/src/Form/UserAgentEntityForm.php +++ b/src/Form/UserAgentEntityForm.php @@ -6,7 +6,7 @@ use Drupal\Core\Entity\EntityForm; use Drupal\Core\Form\FormStateInterface; /** - * Class UserAgentEntityForm. + * Defines the UserAgentEntityForm class for configuring user agent entities. */ class UserAgentEntityForm extends EntityForm {