public function PushManager::getDefinitions in Open Social 10.3.x
Same name and namespace in other branches
- 8.9 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
- 8.7 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
- 8.8 modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
- 10.0.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
- 10.1.x modules/custom/activity_send/modules/activity_send_push_notification/src/PushManager.php \Drupal\activity_send_push_notification\PushManager::getDefinitions()
- 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_notificationCode
public function getDefinitions() {
$definitions = parent::getDefinitions();
uasort($definitions, function ($a, $b) {
return SortArray::sortByKeyInt($a, $b, 'weight');
});
return $definitions;
}