public function MassContactCategory::getGroupingCategories in Mass Contact 8
Gets grouping categories for a given plugin.
Parameters
string $grouping_id: The grouping plugin ID.
Return value
\Drupal\mass_contact\Plugin\MassContact\GroupingMethod\GroupingInterface A grouping category plugin instance.
Overrides MassContactCategoryInterface::getGroupingCategories
File
- src/
Entity/ MassContactCategory.php, line 130
Class
- MassContactCategory
- Defines the Mass contact category entity.
Namespace
Drupal\mass_contact\EntityCode
public function getGroupingCategories($grouping_id) {
$groupings = $this
->getGroupings();
if (isset($groupings[$grouping_id])) {
return $groupings[$grouping_id];
}
return FALSE;
}