function __construct($plugin, $profile) { /** * The term entity dont use the same column name as in the entity keys * bundle definition, so lets add it our self. */ $this->entity_key_bundle = 'vid'; parent::__construct($plugin, $profile); }
function __construct($plugin, $profile) { /** * The user entity doesn't add any label in their entity keys as they define a * "label callback" instead. Therefor we have to tell which field the user * entity have as label. */ $this->entity_field_label = 'name'; parent::__construct($plugin, $profile); }