public function GroupRelationManager::clearCachedDefinitions in Group 2.0.x
Clears static and persistent plugin definition caches.
Don't resort to calling \Drupal::cache()->delete() and friends to make Drupal detect new or updated plugin definitions. Always use this method on the appropriate plugin type's plugin manager!
Overrides DefaultPluginManager::clearCachedDefinitions
File
- src/
Plugin/ Group/ Relation/ GroupRelationManager.php, line 477
Class
- GroupRelationManager
- Manages GroupRelation plugin implementations.
Namespace
Drupal\group\Plugin\Group\RelationCode
public function clearCachedDefinitions() {
parent::clearCachedDefinitions();
// The collection of all plugins should only change if the plugin
// definitions change, so we can safely reset that here.
$this->allPlugins = NULL;
}