You are here

public function ProfileInterface::getData in Profile 8

Gets a profile data value with the given key.

Used to store arbitrary data for the profile.

Parameters

string $key: The key.

mixed $default: The default value.

Return value

mixed The value.

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

File

src/Entity/ProfileInterface.php, line 73

Class

ProfileInterface
Provides an interface for profiles.

Namespace

Drupal\profile\Entity

Code

public function getData($key, $default = NULL);