protected function _checkEvent(Event $event) {
		$className = $this->_getAdapterClassFromConfig($event->getData('entity')['adapter']);
		$classes = $this->_adapterClasses;

		if (!empty($classes) && !in_array($className, $classes)) {
			$message = 'The listener `%s` doesn\'t allow the `%s` adapter class! Probably because it can\'t work with it.';
			throw new StorageException(sprintf(
				$message,
				get_class($this),
				$className
			));
		}

		return $event->getSubject() instanceof Table && $this->_modelFilter($event);
	}
protected function _checkEvent(Event $event) {
		$className = $this->_getAdapterClassFromConfig($event->getData('entity')['adapter']);
		$classes = $this->_adapterClasses;

		if (!empty($classes) && !in_array($className, $classes)) {
			$message = 'The listener `%s` doesn\'t allow the `%s` adapter class! Probably because it can\'t work with it.';
			throw new StorageException(sprintf(
				$message,
				get_class($this),
				$className
			));
		}

		return $event->getSubject() instanceof Table && $this->_modelFilter($event);
	}
protected function _checkEvent ( Event $ event ) { $ className = $ this -> _getAdapterClassFromConfig ( $ event -> getData ( 'entity' ) [ 'adapter' ] ) ; $ classes = $ this -> _adapterClasses ; if ( ! empty ( $ classes ) && ! in_array ( $ className , $ classes ) ) { $ message = 'The listener `%s` doesn\'t allow the `%s` adapter class! Probably because it can\'t work with it.' ; throw new StorageException ( sprintf ( $ message , get_class ( $ this ) , $ className ) ) ; } return $ event -> getSubject ( ) instanceof Table && $ this -> _modelFilter ( $ event ) ; }
Check if the event is of a type or subject object of type model we want to
process with this listener.

@param \Cake\Event\Event $event
@return bool
@throws \Burzum\FileStorage\Storage\StorageException
Check if the event is of a type or subject object of type model we want to process with this listener .