class PurgeDiagnosticCheck in Purge 8.3
Defines a PurgeDiagnosticCheck annotation object.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\purge\Annotation\PurgeDiagnosticCheck
Expanded class hierarchy of PurgeDiagnosticCheck
14 classes are annotated with PurgeDiagnosticCheck
- AlwaysErrorDiagnosticCheck in tests/
modules/ purge_check_error_test/ src/ Plugin/ Purge/ DiagnosticCheck/ AlwaysErrorDiagnosticCheck.php - Checks if there is a purger plugin that invalidates an external cache.
- AlwaysInfoDiagnosticCheck in tests/
modules/ purge_check_test/ src/ Plugin/ Purge/ DiagnosticCheck/ AlwaysInfoDiagnosticCheck.php - Checks if there is a purger plugin that invalidates an external cache.
- AlwaysOkDiagnosticCheck in tests/
modules/ purge_check_test/ src/ Plugin/ Purge/ DiagnosticCheck/ AlwaysOkDiagnosticCheck.php - Checks if there is a purger plugin that invalidates an external cache.
- AlwaysWarningDiagnosticCheck in tests/
modules/ purge_check_warning_test/ src/ Plugin/ Purge/ DiagnosticCheck/ AlwaysWarningDiagnosticCheck.php - Checks if there is a purger plugin that invalidates an external cache.
- CapacityDiagnosticCheck in src/
Plugin/ Purge/ DiagnosticCheck/ CapacityDiagnosticCheck.php - Checks if there is purging capacity available.
File
- src/
Annotation/ PurgeDiagnosticCheck.php, line 12
Namespace
Drupal\purge\AnnotationView source
class PurgeDiagnosticCheck extends Plugin {
/**
* The plugin ID of the diagnostic check.
*
* @var string
*/
public $id;
/**
* The title of the check.
*
* @var \Drupal\Core\Annotation\Translation
* @ingroup plugin_translatable
*/
public $title;
/**
* The description of what the check does.
*
* @var \Drupal\Core\Annotation\Translation
* @ingroup plugin_translatable
*/
public $description;
/**
* Required queue plugins.
*
* When your diagnostic check is specific for a certain queue plugin(s) you
* can bind it to these plugins. This check will then only get loaded when
* any of these specified queues are in active use.
*
* @var array
*
* @code
* dependent_queue_plugins = {"memory", "file"}
* @endcode
*/
public $dependent_queue_plugins = [];
// phpcs:ignore -- annotation property!
/**
* Required purger plugins.
*
* When your diagnostic check is specific for a certain purger plugin(s) you
* can bind it to these plugins. This check will then only get loaded when
* any of these specified purgers are in active use.
*
* @var array
*
* @code
* dependent_purger_plugins = {"mypurger"}
* @endcode
*/
public $dependent_purger_plugins = [];
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |
PurgeDiagnosticCheck:: |
public | property | Required purger plugins. | |
PurgeDiagnosticCheck:: |
public | property | Required queue plugins. | |
PurgeDiagnosticCheck:: |
public | property | The description of what the check does. | |
PurgeDiagnosticCheck:: |
public | property | The plugin ID of the diagnostic check. | |
PurgeDiagnosticCheck:: |
public | property | The title of the check. |