You are here

public function PushManager::getDefinitions in Open Social 8.9

Same name and namespace in other branches
  1. 8.7 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
  2. 8.8 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
  3. 10.3.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
  4. 10.0.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
  5. 10.1.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
  6. 10.2.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()

Gets the definition of all plugins for this type.

Return value

mixed[] An array of plugin definitions (empty array if no definitions were found). Keys are plugin IDs.

Overrides DefaultPluginManager::getDefinitions

See also

\Drupal\Core\Plugin\FilteredPluginManagerInterface::getFilteredDefinitions()

File

modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php, line 50

Class

PushManager
Class PushManager.

Namespace

Drupal\activity_send_push_notification

Code

public function getDefinitions() {
  $definitions = parent::getDefinitions();
  uasort($definitions, function ($a, $b) {
    return SortArray::sortByKeyInt($a, $b, 'weight');
  });
  return $definitions;
}