Afform - improve AbstractBehavior docblock
authorColeman Watts <coleman@civicrm.org>
Sat, 29 Oct 2022 15:31:31 +0000 (11:31 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 29 Oct 2022 15:31:31 +0000 (11:31 -0400)
ext/afform/core/Civi/Afform/AbstractBehavior.php

index c1f3d0a8ac4adc7dc4a2883989323092907239a5..2ca00ef73c8cdea0c35077ab08f6c307d4d6c238 100644 (file)
@@ -24,13 +24,9 @@ use Civi\Core\Service\AutoService;
  * behaviors by selecting a mode.
  *
  * To enact its functionality, a behavior class can listen to any Civi hook or event.
- * (the simplist way is by implementing `HookInterface`,
- * or for finer control of the order of events, try the `EventSubscriberInterface`).
+ * (e.g. by using `EventSubscriberInterface`).
  *
- * Notable events often used by Behaviors include `civi.afform.prefill` and `civi.afform.submit`.
- *
- * Note: Behavior classes can be in any namespace, but if you want the convenience of the
- * `afform-behavior-php` autoloader, they must be in `\Civi\Afform\Behavior`.
+ * Notable events used by Behaviors include `civi.afform.validate`, `civi.afform.prefill` and `civi.afform.submit`.
  */
 abstract class AbstractBehavior extends AutoService implements BehaviorInterface {