public static function OgGroupAudienceHelper::isGroupAudienceField in Organic groups 8
Returns TRUE if field is a group audience type.
Parameters
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition object.
Return value
bool TRUE if the field is a group audience type, FALSE otherwise.
Overrides OgGroupAudienceHelperInterface::isGroupAudienceField
1 call to OgGroupAudienceHelper::isGroupAudienceField()
- OgGroupAudienceHelper::getAllGroupAudienceFields in src/
OgGroupAudienceHelper.php - Returns all the group audience fields of a certain bundle.
File
- src/
OgGroupAudienceHelper.php, line 54
Class
- OgGroupAudienceHelper
- OG audience field helper methods.
Namespace
Drupal\ogCode
public static function isGroupAudienceField(FieldDefinitionInterface $field_definition) {
return $field_definition
->getType() == OgGroupAudienceHelperInterface::GROUP_REFERENCE;
}