public function GroupContentMenu::postInstall in Group Content Menu 8
Runs tasks after the group content type for this plugin has been created.
A good example of what you might want to do here, is the installation of extra locked fields on the group content type. You can find an example in \Drupal\group\Plugin\GroupContentEnabler\GroupMembership::postInstall().
Overrides GroupContentEnablerBase::postInstall
File
- src/
Plugin/ GroupContentEnabler/ GroupContentMenu.php, line 154
Class
- GroupContentMenu
- Provides a content enabler for group menus.
Namespace
Drupal\group_content_menu\Plugin\GroupContentEnablerCode
public function postInstall() {
parent::postInstall();
// Rebuild route access to pick up new create menu route permissions.
\Drupal::service("router.builder")
->rebuild();
}