FILE: C:\xampp\htdocs\test\web\modules\custom\inputmask_widget\src\Plugin\Field\FieldWidget\InputmaskWidget.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------------------------
50 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
57 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
59 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
93 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
95 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
98 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
101 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new3.04 KB

I have fixed this issue and providing a patch.

gajendra_sharma made their first commit to this issue’s fork.

gajendra_sharma’s picture

Status: Needs review » Needs work
StatusFileSize
new1.77 KB

Patch #2 applied successfully but i think need work on it because some contents is not meaningful.

heni_deepak’s picture

Version: 1.0.0 » 1.0.x-dev
Assigned: Harsh panchal » Unassigned
   /**
sk,
      ];
    }

    return $element;
  }

need to remove unused code.

harshitthakore’s picture

Assigned: Unassigned » harshitthakore
harshitthakore’s picture

StatusFileSize
new3.96 KB

Removed additional code.

harshitthakore’s picture

Assigned: harshitthakore » Unassigned
Status: Needs work » Needs review
Sonal Gyanani’s picture

Assigned: Unassigned » Sonal Gyanani

Sonal Gyanani’s picture

Assigned: Sonal Gyanani » Unassigned
Status: Needs review » Reviewed & tested by the community

Thanks patch working fine.
Move it to RTBC

radheymkumar’s picture

Version: 1.0.x-dev » 1.0.3
Assigned: Unassigned » radheymkumar
Status: Reviewed & tested by the community » Fixed
radheymkumar’s picture

Status: Fixed » Closed (fixed)