Issue #3506721: Provide a "ConditionsFormTrait", which builds a generic conditions form
3 unresolved threads
Closes #3506721
Merge request reports
Activity
10 /** 11 * Provides common functionality for creating a conditions form. 12 */ 13 trait ConditionsFormTrait { 14 15 /** 16 * The key for the conditions form. 17 * 18 * @var string 19 */ 20 protected string $conditionsFormKey = 'conditions'; 21 22 /** 23 * The condition manager. 24 * 25 * @var \Drupal\Core\Condition\ConditionManager 17 * 18 * @var string 19 */ 20 protected string $conditionsFormKey = 'conditions'; 21 22 /** 23 * The condition manager. 24 * 25 * @var \Drupal\Core\Condition\ConditionManager 26 */ 27 protected ?ConditionManager $conditionManager = NULL; 28 29 /** 30 * Repository for context data. 31 * 32 * @var \Drupal\Core\Plugin\Context\ContextRepositoryInterface 24 * 25 * @var \Drupal\Core\Condition\ConditionManager 26 */ 27 protected ?ConditionManager $conditionManager = NULL; 28 29 /** 30 * Repository for context data. 31 * 32 * @var \Drupal\Core\Plugin\Context\ContextRepositoryInterface 33 */ 34 protected ?ContextRepositoryInterface $contextRepository = NULL; 35 36 /** 37 * The language manager. 38 * 39 * @var \Drupal\Core\Language\LanguageManagerInterface
Please register or sign in to reply