public function checkTransformationCount(EventInterface $event) {
        $transformations = $event->getRequest()->getTransformations();

        if ($this->transformationLimit && (count($transformations) > $this->transformationLimit)) {
            throw new ResourceException('Too many transformations applied to resource. The limit is ' .
                                        $this->transformationLimit . ' transformations.', 403);
        }
    }
public function checkTransformationCount(EventInterface $event) {
        $transformations = $event->getRequest()->getTransformations();

        if ($this->transformationLimit && (count($transformations) > $this->transformationLimit)) {
            throw new ResourceException('Too many transformations applied to resource. The limit is ' .
                                        $this->transformationLimit . ' transformations.', 403);
        }
    }
public function checkTransformationCount ( EventInterface $ event ) { $ transformations = $ event -> getRequest ( ) -> getTransformations ( ) ; if ( $ this -> transformationLimit && ( count ( $ transformations ) > $ this -> transformationLimit ) ) { throw new ResourceException ( 'Too many transformations applied to resource. The limit is ' . $ this -> transformationLimit . ' transformations.' , 403 ) ; } }
Check the number of transformations in a request and generate a 403 if there's an excessive number of
transformations.

@param EventInterface $event The triggered event
@throws ResourceException Throws an exception if the transformation count exceeds the allowed value.
Check the number of transformations in a request and generate a 403 if there s an excessive number of transformations .