diff --git a/css/config_translation.admin.css b/css/config_translation.admin.css index 66d9ef3..44db1cb 100644 --- a/css/config_translation.admin.css +++ b/css/config_translation.admin.css @@ -1,6 +1,6 @@ /** * @file - * Styles for configuration translation. + * Styles for Configuration Translation. */ /** diff --git a/lib/Drupal/config_translation/Access/ConfigTranslationFormAccess.php b/lib/Drupal/config_translation/Access/ConfigTranslationFormAccess.php index 3ebf96a..91975a2 100644 --- a/lib/Drupal/config_translation/Access/ConfigTranslationFormAccess.php +++ b/lib/Drupal/config_translation/Access/ConfigTranslationFormAccess.php @@ -2,13 +2,12 @@ /** * @file - * Contains \Drupal\config_translation\Access\ConfigNameCheck. + * Contains \Drupal\config_translation\Access\ConfigTranslationFormAccess. */ namespace Drupal\config_translation\Access; use Drupal\config_translation\ConfigMapperManagerInterface; -use Drupal\Core\Access\StaticAccessCheckInterface; use Drupal\Core\Session\AccountInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Route; diff --git a/lib/Drupal/config_translation/Access/ConfigTranslationOverviewAccess.php b/lib/Drupal/config_translation/Access/ConfigTranslationOverviewAccess.php index b5a8be2..150582d 100644 --- a/lib/Drupal/config_translation/Access/ConfigTranslationOverviewAccess.php +++ b/lib/Drupal/config_translation/Access/ConfigTranslationOverviewAccess.php @@ -26,7 +26,7 @@ class ConfigTranslationOverviewAccess implements StaticAccessCheckInterface { protected $configMapperManager; /** - * Constructs a ConfigNameCheck object. + * Constructs a ConfigTranslationOverviewAccess object. * * @param \Drupal\config_translation\ConfigMapperManagerInterface $config_mapper_manager * The mapper plugin discovery service. diff --git a/lib/Drupal/config_translation/Controller/ConfigTranslationController.php b/lib/Drupal/config_translation/Controller/ConfigTranslationController.php index 9867def..3eb0216 100644 --- a/lib/Drupal/config_translation/Controller/ConfigTranslationController.php +++ b/lib/Drupal/config_translation/Controller/ConfigTranslationController.php @@ -9,8 +9,8 @@ namespace Drupal\config_translation\Controller; use Drupal\config_translation\ConfigMapperManagerInterface; use Drupal\Core\Access\AccessManager; -use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\Controller\ControllerBase; +use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\Language\Language; use Drupal\Core\PathProcessor\InboundPathProcessorInterface; use Drupal\Core\Session\AccountInterface; @@ -20,7 +20,6 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\Matcher\RequestMatcherInterface; -use Symfony\Component\Routing\Route; /** * Provides page callbacks for the configuration translation interface. @@ -28,7 +27,7 @@ use Symfony\Component\Routing\Route; class ConfigTranslationController extends ControllerBase implements ContainerInjectionInterface { /** - * Configuration mapper manager. + * The configuration mapper manager. * * @var \Drupal\config_translation\ConfigMapperManagerInterface */ @@ -144,8 +143,8 @@ class ConfigTranslationController extends ControllerBase implements ContainerInj foreach ($languages as $language) { $langcode = $language->id; - // This is needed because e.g. - // ConfigMapperInterface::getAddRouteParameters() + // This is needed because + // ConfigMapperInterface::getAddRouteParameters(), for example, // needs to return the correct language code for each table row. $fake_request->attributes->set('langcode', $langcode); $mapper->populateFromRequest($fake_request); @@ -227,7 +226,7 @@ class ConfigTranslationController extends ControllerBase implements ContainerInj * Path to look up. * * @return \Symfony\Component\HttpFoundation\Request|null - * A populated request object or NULL if the patch couldn't be matched. + * A populated request object or NULL if the patch could not be matched. */ protected function getRequestForPath(Request $request, $path) { // @todo Use RequestHelper::duplicate once https://drupal.org/node/2090293 diff --git a/lib/Drupal/config_translation/Controller/ConfigTranslationFieldInstanceListController.php b/lib/Drupal/config_translation/Controller/ConfigTranslationFieldInstanceListController.php index d305988..fe10cfd 100644 --- a/lib/Drupal/config_translation/Controller/ConfigTranslationFieldInstanceListController.php +++ b/lib/Drupal/config_translation/Controller/ConfigTranslationFieldInstanceListController.php @@ -31,14 +31,14 @@ class ConfigTranslationFieldInstanceListController extends ConfigTranslationEnti /** * An array containing the base entity type's definition. * - * @var string + * @var array */ protected $baseEntityInfo = array(); /** * The bundle info for the base entity type. * - * @var string + * @var array */ protected $baseEntityBundles = array(); @@ -76,7 +76,7 @@ class ConfigTranslationFieldInstanceListController extends ConfigTranslationEnti } /** - * Constructs a new EntityListController object. + * Constructs a new ConfigTranslationFieldInstanceListController object. * * @param string $entity_type * The type of entity to be listed. @@ -88,7 +88,7 @@ class ConfigTranslationFieldInstanceListController extends ConfigTranslationEnti * The module handler to invoke hooks on. * @param \Drupal\Core\Entity\EntityManager $entity_manager * The entity manager. - * @param $definition + * @param array $definition * The plugin definition of the config translation mapper. */ public function __construct($entity_type, array $entity_info, EntityStorageControllerInterface $storage, ModuleHandlerInterface $module_handler, EntityManager $entity_manager, array $definition) { diff --git a/lib/Drupal/config_translation/Controller/ConfigTranslationListController.php b/lib/Drupal/config_translation/Controller/ConfigTranslationListController.php index c920a43..48ecad7 100644 --- a/lib/Drupal/config_translation/Controller/ConfigTranslationListController.php +++ b/lib/Drupal/config_translation/Controller/ConfigTranslationListController.php @@ -19,7 +19,7 @@ use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; class ConfigTranslationListController extends ControllerBase implements ContainerInjectionInterface { /** - * Definition of the config mapper. + * The definition of the config mapper. * * @var array */ @@ -37,7 +37,7 @@ class ConfigTranslationListController extends ControllerBase implements Containe * * @param \Drupal\config_translation\ConfigMapperManagerInterface $mapper_manager * The config mapper manager. - * @param $config_translation_mapper + * @param string $config_translation_mapper * The config mapper id. */ public function __construct(ConfigMapperManagerInterface $mapper_manager, $config_translation_mapper) { diff --git a/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php b/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php index c1ef9e5..b2242fd 100644 --- a/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php +++ b/lib/Drupal/config_translation/Controller/ConfigTranslationMapperList.php @@ -28,7 +28,7 @@ class ConfigTranslationMapperList extends ControllerBase implements ContainerInj protected $mappers; /** - * Constructs a new ConfigTranslationMapperIndex object. + * Constructs a new ConfigTranslationMapperList object. * * @param \Drupal\config_translation\ConfigMapperInterface[] $mappers * The configuration mapper manager. @@ -38,7 +38,7 @@ class ConfigTranslationMapperList extends ControllerBase implements ContainerInj } /** - * {inheritdoc} + * {@inheritdoc} */ public static function create(ContainerInterface $container) { return new static(