protected function _identifierFilter(Event $event) {
		if (is_array($this->_config['identifiers'])) {
			$identifier = $event->getData('entity.model');
			if (!in_array($identifier, $this->_config['identifiers'])) {
				return false;
			}
		}

		return true;
	}
protected function _identifierFilter(Event $event) {
		if (is_array($this->_config['identifiers'])) {
			$identifier = $event->getData('entity.model');
			if (!in_array($identifier, $this->_config['identifiers'])) {
				return false;
			}
		}

		return true;
	}
protected function _identifierFilter ( Event $ event ) { if ( is_array ( $ this -> _config [ 'identifiers' ] ) ) { $ identifier = $ event -> getData ( 'entity.model' ) ; if ( ! in_array ( $ identifier , $ this -> _config [ 'identifiers' ] ) ) { return false ; } } return true ; }
Detects if an entities model field has name of one of the allowed models set.

@param \Cake\Event\Event $event
@return bool
Detects if an entities model field has name of one of the allowed models set .