final public function getExtensionKey()Inherited
Get the extension internal key.
| string |
public function getExtensionName()
Get the extension human name.
| string |
public function canBeforeDestroyObject($destruction_engine, $object)
Check if this extension supports a "Before Destruction" hook on the specified object.
The object is guaranteed to have a PHID and still exist but will be destroyed later. This method should not contain write operations. This method exposes a PhabricatorDestructionEngine since it can give useful info, but here you should not use it to destroy objects. When this method returns true, the method beforeDestroyObject() will be fired.
| PhabricatorDestructionEngine | $destruction_engine | Available destruction engine |
| object | $object | Object that will be destroyed |
| bool | If true, beforeDestroyObject() will be fired. |
public function beforeDestroyObject($destruction_engine, $object)
Call your "Before Destruction" hook on the specified object. The object is guaranteed to have a PHID and still exist but will be destroyed later. This method is not called if canBeforeDestroyObject() returns false.
| PhabricatorDestructionEngine | $destruction_engine | Available destruction engine |
| object | $object | Object that will be destroyed |
| wild |
final public static function getAllExtensions()Inherited
Get all "Before Destruction Engine" extensions.
| list<PhabricatorDestructionEngineExtension> |