Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
file_extractor
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
file_extractor
Merge requests
!29
Issue
#3456748
: [5.0.x] convert file extractor plugins into attribute based plugins
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3456748
: [5.0.x] convert file extractor plugins into attribute based plugins
issue/file_extractor-3456748:3456748-5.0.x-convert-file
into
4.2.x
Overview
1
Commits
2
Pipelines
3
Changes
8
All threads resolved!
Hide all comments
Merged
Nicolas Berquez
requested to merge
issue/file_extractor-3456748:3456748-5.0.x-convert-file
into
4.2.x
7 months ago
Overview
1
Commits
2
Pipelines
3
Changes
8
All threads resolved!
Hide all comments
Expand
Closes
#3456748
0
0
Merge request reports
Compare
4.2.x
version 1
f227d01d
7 months ago
4.2.x (base)
and
latest version
latest version
20bf2f10
2 commits,
7 months ago
version 1
f227d01d
1 commit,
7 months ago
8 files
+
91
−
42
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
src/Attribute/FileExtractorExtractor.php
0 → 100644
+
42
−
0
Options
<?php
declare
(
strict_types
=
1
);
namespace
Drupal\file_extractor\Attribute
;
use
Drupal\Component\Plugin\Attribute\Plugin
;
use
Drupal\Core\StringTranslation\TranslatableMarkup
;
/**
* Defines a FileExtractorExtractor attribute for plugin discovery.
*
* @ingroup plugin_api
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class
FileExtractorExtractor
extends
Plugin
{
/**
* Constructs a FileExtractorExtractor attribute.
*
* @param string $id
* The plugin ID.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $label
* (optional) The human-readable name of the File Extractor.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* (optional) A short description of the File Extractor.
* @param string[] $dependencies
* (optional) The name of modules that are required for this plugin to be
* usable.
* @param string[] $packageDependencies
* (optional) The name of Composer packages that are required for this
* plugin.
*/
public
function
__construct
(
public
readonly
string
$id
,
public
readonly
?TranslatableMarkup
$label
=
NULL
,
public
readonly
?TranslatableMarkup
$description
=
NULL
,
public
readonly
array
$dependencies
=
[],
public
readonly
array
$packageDependencies
=
[],
)
{}
}
Loading