I came upon a scenario where I wanted to delete the "private" field permission type. This would a nice feature to support.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | alter_definitions-2900134-1.patch | 1.32 KB | ibustos |
I came upon a scenario where I wanted to delete the "private" field permission type. This would a nice feature to support.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | alter_definitions-2900134-1.patch | 1.32 KB | ibustos |
Comments
Comment #2
ibustosComment #3
ibustosAttached patch.
Comment #4
ibustosComment #5
jhedstromGood idea! Since these are already plugins though, we just need to add a call set our desired alter hook in our plugin manager class (
\Drupal\field_permissions\Plugin\FieldPermissionType\Manager):So in the
__construct()method something like:This would make the alter hook
hook_field_permissions_types_alter().Comment #7
jhedstromDisregard my above comment, I completely missed the second part of the patch where you had indeed done as I suggested already :)
Committed. Thanks!