Skip to content
Snippets Groups Projects
Commit dff7288c authored by micha.jakubowski's avatar micha.jakubowski Committed by Claudiu Cristea
Browse files

ISAICP-9407: Replace annotations with attributes.

parent e779b699
No related branches found
No related tags found
1 merge request!210Patch release 2.2.1
......@@ -4,16 +4,14 @@
namespace Drupal\eu_oss_catalogue\Annotation;
use Attribute;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Defines a code hosting platform plugin.
*
* @see plugin_api
*
* @Annotation
*/
#[Attribute(Attribute::TARGET_CLASS)]
class EuOssCatalogueHostingPlatform extends Plugin {
/**
......@@ -24,7 +22,7 @@ class EuOssCatalogueHostingPlatform extends Plugin {
/**
* The label of the plugin.
*
* @ingroup plugin_translatable
* This property is translatable.
*/
public Translation $label;
......
......@@ -4,16 +4,14 @@
namespace Drupal\eu_oss_catalogue\Annotation;
use Attribute;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Defines a parser plugin.
*
* @see plugin_api
*
* @Annotation
*/
#[Attribute(Attribute::TARGET_CLASS)]
class EuOssCatalogueParser extends Plugin {
/**
......@@ -24,7 +22,7 @@ class EuOssCatalogueParser extends Plugin {
/**
* The label of the plugin.
*
* @ingroup plugin_translatable
* This property is translatable.
*/
public Translation $label;
......
......@@ -4,16 +4,14 @@
namespace Drupal\eu_oss_catalogue\Annotation;
use Attribute;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Defines a EU OSS Catalogue provider.
*
* @see plugin_api
*
* @Annotation
*/
#[Attribute(Attribute::TARGET_CLASS)]
class EuOssCatalogueProvider extends Plugin {
/**
......@@ -24,7 +22,7 @@ class EuOssCatalogueProvider extends Plugin {
/**
* The label of the plugin.
*
* @ingroup plugin_translatable
* This property is translatable.
*/
public Translation $label;
......@@ -36,7 +34,7 @@ class EuOssCatalogueProvider extends Plugin {
/**
* A short description of the provider plugin.
*
* @ingroup plugin_translatable
* This property is translatable.
*/
public ?Translation $description = NULL;
......
......@@ -4,16 +4,14 @@
namespace Drupal\eu_oss_catalogue\Annotation;
use Attribute;
use Drupal\Component\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;
/**
* Defines a value resolver plugin.
*
* @see plugin_api
*
* @Annotation
*/
#[Attribute(Attribute::TARGET_CLASS)]
class EuOssCatalogueResolver extends Plugin {
/**
......@@ -24,7 +22,7 @@ class EuOssCatalogueResolver extends Plugin {
/**
* The label of the plugin.
*
* @ingroup plugin_translatable
* This property is translatable.
*/
public Translation $label;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment