You are here

public function AvatarPreview::setScope in Avatar Kit 8

Sets the scope of the avatar preview.

Parameters

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

Return value

\Drupal\avatars\AvatarPreviewInterface Return avatar preview for chaining.

Overrides AvatarPreviewInterface::setScope

File

src/Entity/AvatarPreview.php, line 99

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

public function setScope($scope) {
  $this
    ->set('scope', $scope);
  return $this;
}