PHPackages                             emichalsen/pnt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. emichalsen/pnt

ActiveDrupal-module[Utility &amp; Helpers](/categories/utility)

emichalsen/pnt
==============

SN pnt class adder

035PHP

Since Sep 12Pushed 8y agoCompare

[ Source](https://github.com/michalsen/pnt)[ Packagist](https://packagist.org/packages/emichalsen/pnt)[ RSS](/packages/emichalsen-pnt/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

8.2.17

So there is a bit of sloppiness here in regards to getting the nid of the webform in the pnt.module file.

As I type this I am wondering if I am looking for the wrong item.

Maybe it shouldn't be the nid, because of revisions. Maybe I should be looking at the form\_id.

Back to the drawing board....

7.31.17

First day for the 100th aniversary for the Battle of Passchendaele, and here I am pushing my first D8 module. It isn't much, and is about half down, but wanted to get it up for review.

Basically it adds a custom class to specific webforms for event tracking.

There is some error messaging I need to fix after I make the hook\_form\_alter() dynamic to the choices from the admin page.

8.1.17 Made it dynamic, but not the way I like. Need a way to see the nid of the webform that is rendering, but not getting it from the url or menu\_object()

I saw  where: $entities = \[\]; foreach (\\Drupal::routeMatch()-&gt;getParameters() as $param) { if ($param instanceof \\Drupal\\Core\\Entity\\EntityInterface) { $entities\[\] = $param; } }

But this is taking it from the route, which I did not wish to.

Open to ideas!

I guess a way around this is to save the webform id instead of the nid, and match that way...

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a5fad0120454c3682231c5f2e4aefd6f58ee93b39deadb9e13ef3cca59e02ae3?d=identicon)[michalsen](/maintainers/michalsen)

---

Top Contributors

[![michalsen](https://avatars.githubusercontent.com/u/331412?v=4)](https://github.com/michalsen "michalsen (11 commits)")

### Embed Badge

![Health badge](/badges/emichalsen-pnt/health.svg)

```
[![Health](https://phpackages.com/badges/emichalsen-pnt/health.svg)](https://phpackages.com/packages/emichalsen-pnt)
```

###  Alternatives

[maknz/slack-laravel

Laravel 4 and 5 integration for the maknz/slack package, including facades and service providers.

154969.3k1](/packages/maknz-slack-laravel)[yireo/magento2-extensionchecker

Scan the code of a Magento module

96151.6k3](/packages/yireo-magento2-extensionchecker)[elgg/sniffs

Elgg coding standards

19144.9k2](/packages/elgg-sniffs)[mkraemer/react-inotify

Inotify bindings for ReactPHP

5016.3k1](/packages/mkraemer-react-inotify)[digital-creative/resource-navigation-link

Create links to internal or external resources.

1044.0k](/packages/digital-creative-resource-navigation-link)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
