Implements TypedDataInterface::__construct().
Overrides TypedData::__construct
public function __construct(array $definition) {
$this->definition = $definition;
if (!isset($definition['settings']['text source'])) {
throw new InvalidArgumentException("The definition's 'source' key has to specify the name of the text property to be processed.");
}
}