behaviors/TranslateBehavior.php
private function findSourceMessage($message)
    {
        $sourceMessages = LanguageSource::findAll(['message' => $message, 'category' => $this->category]);

        foreach ($sourceMessages as $source) {
            if ($source->message === $message) {
                return $source;
            }
        }
    }
private function findSourceMessage($message)
    {
        $sourceMessages = LanguageSource::findAll(['message' => $message, 'category' => $this->category]);

        foreach ($sourceMessages as $source) {
            if ($source->message === $message) {
                return $source;
            }
        }
    }
private function findSourceMessage ( $ message ) { $ sourceMessages = LanguageSource :: findAll ( [ 'message' => $ message , 'category' => $ this -> category ] ) ; foreach ( $ sourceMessages as $ source ) { if ( $ source -> message === $ message ) { return $ source ; } } }
Finds the source record with case sensitive match.

@param string $message

@return LanguageSource|null Null if the source is not found.
Finds the source record with case sensitive match .