Elgg\EventsService::triggerDeprecated PHP Method

triggerDeprecated() public method

Trigger an event normally, but send a notice about deprecated use if any handlers are registered.
See also: trigger
public triggerDeprecated ( string $event, string $object_type, string $object = null, string $message, string $version ) : boolean
$event string The event type
$object_type string The object type
$object string The object involved in the event
$message string The deprecation message
$version string Human-readable *release* version: 1.9, 1.10, ...
return boolean
    function triggerDeprecated($event, $object_type, $object = null, $message, $version)
    {
        $options = array(self::OPTION_DEPRECATION_MESSAGE => $message, self::OPTION_DEPRECATION_VERSION => $version);
        return $this->trigger($event, $object_type, $object, $options);
    }