You are here

public function SubscribersInterface::getFlags in Message Subscribe 8

Get Message subscribe related flags.

Return Flags related to message subscribe using a name convention -- the flag name should start with "subscribe_".

Parameters

string $entity_type: (optional) The entity type for which to load the flags.

string $bundle: (optional) The bundle for which to load the flags.

\Drupal\Core\Session\AccountInterface $account: (optional) The user account to filter available flags. If not set, all flags for the given entity and bundle will be returned.

Return value

\Drupal\flag\FlagInterface[] An array of the structure [fid] = flag_object.

See also

\Drupal\flag\FlagServiceInterface::getAllFlags()

1 method overrides SubscribersInterface::getFlags()
Subscribers::getFlags in src/Subscribers.php
Get Message subscribe related flags.

File

src/SubscribersInterface.php, line 137

Class

SubscribersInterface
Subscribers service.

Namespace

Drupal\message_subscribe

Code

public function getFlags($entity_type = NULL, $bundle = NULL, AccountInterface $account = NULL);