Skip to content
Snippets Groups Projects

Issue #3502141: Add possibility of using Attributes instead of plugin...

3 files
+ 43
0
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -20,11 +20,14 @@ class FapiValidationFilter extends Plugin {
@@ -20,11 +20,14 @@ class FapiValidationFilter extends Plugin {
* (optional) The human-readable name of the filter type.
* (optional) The human-readable name of the filter type.
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* @param \Drupal\Core\StringTranslation\TranslatableMarkup|null $description
* (optional) A short description of the filter type.
* (optional) A short description of the filter type.
 
* @param class-string|null $deriver
 
* (optional) The deriver class.
*/
*/
public function __construct(
public function __construct(
public readonly string $id,
public readonly string $id,
public readonly ?TranslatableMarkup $label = NULL,
public readonly ?TranslatableMarkup $label = NULL,
public readonly ?TranslatableMarkup $description = NULL,
public readonly ?TranslatableMarkup $description = NULL,
 
public readonly ?string $deriver = NULL,
) {}
) {}
}
}
Loading