You are here

public function ProfileInterface::setData in Profile 8

Sets a profile data value with the given key.

Parameters

string $key: The key.

mixed $value: The value.

Return value

$this

1 method overrides ProfileInterface::setData()
Profile::setData in src/Entity/Profile.php
Sets a profile data value with the given key.

File

src/Entity/ProfileInterface.php, line 85

Class

ProfileInterface
Provides an interface for profiles.

Namespace

Drupal\profile\Entity

Code

public function setData($key, $value);