1. 8.5.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
  2. 8.5.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  3. 8.5.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  4. 8.5.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  5. 8.5.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  6. 8.5.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  7. 8.5.x core/lib/Drupal/Core/Database/Query/Condition.php
  8. 8.0.x core/lib/Drupal/Core/Database/Query/Condition.php
  9. 8.0.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  10. 8.0.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  11. 8.0.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  12. 8.0.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  13. 8.0.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
  14. 8.0.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  15. 8.1.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  16. 8.1.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  17. 8.1.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  18. 8.1.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  19. 8.1.x core/lib/Drupal/Core/Database/Query/Condition.php
  20. 8.1.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
  21. 8.1.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  22. 8.2.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  23. 8.2.x core/lib/Drupal/Core/Database/Query/Condition.php
  24. 8.2.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  25. 8.2.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
  26. 8.2.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  27. 8.2.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  28. 8.2.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  29. 8.3.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
  30. 8.3.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  31. 8.3.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  32. 8.3.x core/lib/Drupal/Core/Database/Query/Condition.php
  33. 8.3.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  34. 8.3.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  35. 8.3.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  36. 8.4.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php
  37. 8.4.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  38. 8.4.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  39. 8.4.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  40. 8.4.x core/lib/Drupal/Core/Database/Query/Condition.php
  41. 8.4.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  42. 8.4.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  43. 8.6.x core/lib/Drupal/Core/Entity/Query/Sql/Condition.php
  44. 8.6.x core/lib/Drupal/Core/Entity/Query/Sql/pgsql/Condition.php
  45. 8.6.x core/lib/Drupal/Core/Entity/Query/Null/Condition.php
  46. 8.6.x core/lib/Drupal/Core/Database/Query/Condition.php
  47. 8.6.x core/lib/Drupal/Core/Condition/Annotation/Condition.php
  48. 8.6.x core/lib/Drupal/Core/Config/Entity/Query/Condition.php
  49. 8.6.x core/lib/Drupal/Core/Entity/KeyValueStore/Query/Condition.php

Namespace

Drupal\Core\Condition\Annotation

File

core/lib/Drupal/Core/Condition/Annotation/Condition.php
View source
<?php

namespace Drupal\Core\Condition\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines a condition plugin annotation object.
 *
 * Condition plugins provide generalized conditions for use in other
 * operations, such as conditional block placement.
 *
 * Plugin Namespace: Plugin\Condition
 *
 * For a working example, see \Drupal\user\Plugin\Condition\UserRole.
 *
 * @see \Drupal\Core\Condition\ConditionManager
 * @see \Drupal\Core\Condition\ConditionInterface
 * @see \Drupal\Core\Condition\ConditionPluginBase
 * @see block_api
 *
 * @ingroup plugin_api
 *
 * @Annotation
 */
class Condition extends Plugin {

  /**
   * The condition plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the condition.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The name of the module providing the type.
   *
   * @var string
   */
  public $module;

  /**
   * An array of context definitions describing the context used by the plugin.
   *
   * The array is keyed by context names.
   *
   * @var \Drupal\Core\Annotation\ContextDefinition[]
   */
  public $context = array();

  /**
   * The category under which the condition should listed in the UI.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $category;

}

Classes

Namesort descending Description
Condition Defines a condition plugin annotation object.