eZ\Publish\Core\SignalSlot\SignalDispatcher::emit PHP Method

emit() abstract public method

All assigned slots will eventually receive the $signal
abstract public emit ( Signal $signal )
$signal Signal
    public abstract function emit(Signal $signal);

Usage Example

Beispiel #1
0
 /**
  * Adds translation information to the content object
  *
  * @example Examples/translation_5x.php
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the user is not allowed add a translation info
  *
  * @param \eZ\Publish\API\Repository\Values\Content\TranslationInfo $translationInfo
  *
  * @since 5.0
  */
 public function addTranslationInfo( TranslationInfo $translationInfo )
 {
     $returnValue = $this->service->addTranslationInfo( $translationInfo );
     $this->signalDispatcher->emit(
         new AddTranslationInfoSignal( array() )
     );
     return $returnValue;
 }
All Usage Examples Of eZ\Publish\Core\SignalSlot\SignalDispatcher::emit
SignalDispatcher