Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
field_permissions
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
field_permissions
Commits
9dd01cce
Commit
9dd01cce
authored
7 years ago
by
Ivan Bustos
Committed by
Jonathan Hedstrom
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2900134
by ibustos: Allow other modules to alter existing plugin definitions
parent
3a214fb8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
field_permissions.api.php
+25
-0
25 additions, 0 deletions
field_permissions.api.php
src/Plugin/FieldPermissionType/Manager.php
+1
-0
1 addition, 0 deletions
src/Plugin/FieldPermissionType/Manager.php
with
26 additions
and
0 deletions
field_permissions.api.php
0 → 100644
+
25
−
0
View file @
9dd01cce
<?php
/**
* @file
* Hooks for the field_permissions module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Alters discovered field_permission_type plugins.
*
* @param array $definitions
* Discovered definitions.
*/
function
hook_field_permission_type_plugin_alter
(
array
&
$definitions
)
{
unset
(
$definitions
[
'private'
]);
}
/**
* @} End of "addtogroup hooks".
*/
This diff is collapsed.
Click to expand it.
src/Plugin/FieldPermissionType/Manager.php
+
1
−
0
View file @
9dd01cce
...
...
@@ -30,6 +30,7 @@ class Manager extends DefaultPluginManager {
public
function
__construct
(
\Traversable
$namespaces
,
CacheBackendInterface
$cache_backend
,
ModuleHandlerInterface
$module_handler
)
{
parent
::
__construct
(
'Plugin/FieldPermissionType'
,
$namespaces
,
$module_handler
,
FieldPermissionTypeInterface
::
class
,
FieldPermissionType
::
class
);
$this
->
setCacheBackend
(
$cache_backend
,
'field_permission_type_plugins'
);
$this
->
alterInfo
(
'field_permission_type_plugin'
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment