class LanguageSelectionPageCondition in Language Selection Page 8.2
Defines a language selection page condition annotation object.
Plugin Namespace: Plugin\LanguageSelectionPageCondition.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\Core\Condition\Annotation\Condition
- class \Drupal\language_selection_page\Annotation\LanguageSelectionPageCondition
- class \Drupal\Core\Condition\Annotation\Condition
Expanded class hierarchy of LanguageSelectionPageCondition
See also
11 classes are annotated with LanguageSelectionPageCondition
- LanguageSelectionPageConditionBlacklistedPaths in src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionBlacklistedPaths.php - Class for the Blacklisted paths condition plugin.
- LanguageSelectionPageConditionIgnoreNeutral in src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionIgnoreNeutral.php - Class for the Ignore Language Neutral plugin.
- LanguageSelectionPageConditionIndexPhp in src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionIndexPhp.php - Class for the Index.php condition plugin.
- LanguageSelectionPageConditionLanguagePrefixes in src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionLanguagePrefixes.php - Class for the Language Prefixes plugin.
- LanguageSelectionPageConditionMethodIsValid in src/
Plugin/ LanguageSelectionPageCondition/ LanguageSelectionPageConditionMethodIsValid.php - Class for LanguageSelectionPageConditionMethodIsValid.
File
- src/
Annotation/ LanguageSelectionPageCondition.php, line 18
Namespace
Drupal\language_selection_page\AnnotationView source
class LanguageSelectionPageCondition extends Condition {
/**
* The description of the language selection page condition plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
/**
* The language selection page condition plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the language selection page condition plugin.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $name;
/**
* Whether to apply the plugin to the Language selection page block.
*
* - TRUE if this condition plugin should be run to determine whether to
* redirect to a language page, as well as whether to display the block.
* - FALSE if this condition should be run to determine whether to redirect
* to a language page, but not whether to display the block.
*
* @var bool
*
* @see \Drupal\language_selection_page\Plugin\Block\LanguageSelectionPageBlock::blockAccess()
*/
public $runInBlock;
/**
* The default weight of the language selection page condition plugin.
*
* @var int
*/
public $weight;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Condition:: |
public | property | The category under which the condition should listed in the UI. | |
Condition:: |
public | property | An array of context definitions describing the context used by the plugin. | |
Condition:: |
public | property | An array of context definitions describing the context used by the plugin. | |
Condition:: |
public | property | The human-readable name of the condition. | |
Condition:: |
public | property | The name of the module providing the type. | |
LanguageSelectionPageCondition:: |
public | property | The description of the language selection page condition plugin. | |
LanguageSelectionPageCondition:: |
public | property |
The language selection page condition plugin ID. Overrides Condition:: |
|
LanguageSelectionPageCondition:: |
public | property | The human-readable name of the language selection page condition plugin. | |
LanguageSelectionPageCondition:: |
public | property | Whether to apply the plugin to the Language selection page block. | |
LanguageSelectionPageCondition:: |
public | property | The default weight of the language selection page condition plugin. | |
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 |