You are here

public function GroupMembershipInterface::hasGroup in farmOS 2.x

Check if an asset is a member of a group.

Parameters

\Drupal\asset\Entity\AssetInterface $asset: The Asset entity.

Return value

bool Returns TRUE if the asset is a member of a group, FALSE otherwise.

File

modules/asset/group/src/GroupMembershipInterface.php, line 22

Class

GroupMembershipInterface
Asset group membership logic.

Namespace

Drupal\farm_group

Code

public function hasGroup(AssetInterface $asset) : bool;