Sulu\Component\Security\Event\PermissionUpdateEvent::getType PHP Method

getType() public method

Returns the type of object for which the permissions have been updated.
public getType ( ) : string
return string
    public function getType()
    {
        return $this->type;
    }

Usage Example

Example #1
0
 public function onPermissionUpdate(PermissionUpdateEvent $permissionUpdateEvent)
 {
     if ($permissionUpdateEvent->getType() !== SecurityBehavior::class) {
         return;
     }
     $document = $this->documentManager->find($permissionUpdateEvent->getIdentifier());
     $this->searchManager->deindex($document);
 }
All Usage Examples Of Sulu\Component\Security\Event\PermissionUpdateEvent::getType