You are here

public function AvatarPreview::getScope in Avatar Kit 8

Gets the scope of the avatar preview.

Return value

int Value of a \Drupal\avatars\AvatarPreviewInterface::SCOPE_* constant.

Overrides AvatarPreviewInterface::getScope

File

src/Entity/AvatarPreview.php, line 92

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

public function getScope() {
  return $this
    ->get('scope')->value;
}