You are here

protected function MassContactCategory::getGroupingManager in Mass Contact 8

Gets the grouping plugin manager.

@todo Can this be injected on construction?

Return value

\Drupal\Core\Plugin\DefaultPluginManager The plugin manager.

File

src/Entity/MassContactCategory.php, line 158

Class

MassContactCategory
Defines the Mass contact category entity.

Namespace

Drupal\mass_contact\Entity

Code

protected function getGroupingManager() {
  if (!isset($this->groupingMethodManager)) {
    $this->groupingMethodManager = \Drupal::service('plugin.manager.mass_contact.grouping_method');
  }
  return $this->groupingMethodManager;
}