Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_browser
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
entity_browser
Merge requests
!78
Issue
#3522955
: add attribute classes.
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3522955
: add attribute classes.
issue/entity_browser-3522955:3522955-php-annotations
into
8.x-2.x
Overview
0
Commits
4
Pipelines
4
Changes
30
Open
Issue #3522955: add attribute classes.
Primoz Hmeljak
requested to merge
issue/entity_browser-3522955:3522955-php-annotations
into
8.x-2.x
3 months ago
Overview
0
Commits
4
Pipelines
4
Changes
30
Closes
#3522955
0
0
Merge request reports
Compare
8.x-2.x
version 3
0cece31f
3 months ago
version 2
7211248f
3 months ago
version 1
093fe8b2
3 months ago
8.x-2.x (base)
and
latest version
latest version
5c7948cb
4 commits,
3 months ago
version 3
0cece31f
3 commits,
3 months ago
version 2
7211248f
2 commits,
3 months ago
version 1
093fe8b2
1 commit,
3 months ago
30 files
+
368
−
129
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
30
src/Attribute/EntityBrowserDisplay.php
0 → 100644
+
35
−
0
View file @ 5c7948cb
Edit in single-file editor
Open in Web IDE
<?php
namespace
Drupal\entity_browser\Attribute
;
use
Drupal\Component\Plugin\Attribute\Plugin
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
/**
* Defines an entity browser display attribute object.
*
* @see hook_entity_browser_display_info_alter()
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class
EntityBrowserDisplay
extends
Plugin
{
/**
* Constructs a new EntityBrowserDisplay instance.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $label
* The human-readable name of the display.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* (optional) A brief description of the display. This will be shown when
* adding or configuring this display.
* @param bool $uses_route
* Indicates that display uses route.
*/
public
function
__construct
(
public
readonly
string
$id
,
public
readonly
TranslatableMarkup
$label
,
public
readonly
?TranslatableMarkup
$description
=
NULL
,
public
bool
$uses_route
=
FALSE
,
public
?string
$provider
=
NULL
,
)
{}
}
Loading