DataSift\Storyplayer\BrowserLib\BaseElementAction::determineTargetType PHP Method

determineTargetType() protected method

protected determineTargetType ( array $words ) : string
$words array
return string
    protected function determineTargetType($words)
    {
        foreach ($words as $word) {
            if (isset($this->targetTypes[$word])) {
                return $word;
            }
        }
        // if we do not recognise the word, substitute a suitable default
        return 'field';
    }