public function getResourceEventName(ResourceInterface $resource, $suffix)
    {
        if (null !== $configuration = $this->registry->findConfiguration($resource, false)) {
            return sprintf('%s.%s', $configuration->getResourceId(), $suffix);
        }

        // TODO throw exception ?

        return null;
    }
public function getResourceEventName(ResourceInterface $resource, $suffix)
    {
        if (null !== $configuration = $this->registry->findConfiguration($resource, false)) {
            return sprintf('%s.%s', $configuration->getResourceId(), $suffix);
        }

        // TODO throw exception ?

        return null;
    }
public function getResourceEventName ( ResourceInterface $ resource , $ suffix ) { if ( null !== $ configuration = $ this -> registry -> findConfiguration ( $ resource , false ) ) { return sprintf ( '%s.%s' , $ configuration -> getResourceId ( ) , $ suffix ) ; } // TODO throw exception ? return null ; }
Returns the resource event name.

@param ResourceInterface $resource
@param string            $suffix

@return string|null
Returns the resource event name .