Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!10682
Resolve
#3488054
"Make it possible"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#3488054
"Make it possible"
issue/drupal-3488054:3488054-make-it-possible
into
11.x
Overview
5
Commits
10
Pipelines
8
Changes
18
All threads resolved!
Hide all comments
Open
godotislate
requested to merge
issue/drupal-3488054:3488054-make-it-possible
into
11.x
4 months ago
Overview
5
Commits
10
Pipelines
8
Changes
18
All threads resolved!
Hide all comments
Expand
Closes
#3488054
0
0
Merge request reports
Compare
11.x
version 7
8432b53e
3 months ago
version 6
75bd2c98
3 months ago
version 5
1912dd85
4 months ago
version 4
2cdfa9c2
4 months ago
version 3
1becfcaa
4 months ago
version 2
4b6eaa5e
4 months ago
version 1
44bad6ac
4 months ago
11.x (HEAD)
and
latest version
latest version
b35e91a9
10 commits,
3 months ago
version 7
8432b53e
9 commits,
3 months ago
version 6
75bd2c98
9 commits,
3 months ago
version 5
1912dd85
8 commits,
4 months ago
version 4
2cdfa9c2
7 commits,
4 months ago
version 3
1becfcaa
6 commits,
4 months ago
version 2
4b6eaa5e
3 commits,
4 months ago
version 1
44bad6ac
3 commits,
4 months ago
18 files
+
678
−
80
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Component/Plugin/Attribute/PluginPropertyInterface.php
0 → 100644
+
55
−
0
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\Component\Plugin\Attribute
;
/**
* Interface for attributes that provide properties to plugin definitions.
*/
interface
PluginPropertyInterface
{
/**
* Gets the class name of the plugin associated with the attribute.
*
* @return class-string
* The class name of the plugin associated with the attribute.
*/
public
function
getPluginClass
():
string
;
/**
* Sets the class name of the plugin associated with the attribute.
*
* @param class-string $class
* The class name of the plugin associated with the attribute.
*
* @return $this
*/
public
function
setPluginClass
(
string
$class
):
static
;
/**
* Checks whether the property attribute can be applied to a plugin attribute.
*
* @param class-string $pluginAttributeClass
* The class of the plugin attribute.
*
* @return bool
* TRUE if no restriction on allowed plugin classes or plugin class is an
* instance of the allowed plugin classes.
*/
public
function
isValidPluginAttribute
(
string
$pluginAttributeClass
):
bool
;
/**
* Adds the property value to the plugin definition.
*
* @param array|object $definition
* The plugin attribute data retrieved from Plugin::get().
*
* @return array|object
* The plugin definition.
*
* @throws \Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
*/
public
function
addToDefinition
(
array
|
object
$definition
):
array
|
object
;
}
Loading