protected function ContentModelUpdater::hideEntityFormPaths in Panopoly 8.2
Hides the path element for the entity forms of a given type.
Parameters
string $type: The media type (bundle).
1 call to ContentModelUpdater::hideEntityFormPaths()
- ContentModelUpdater::installFormDisplays in modules/
panopoly/ panopoly_media/ src/ Update/ ContentModelUpdater.php - Install form displays.
File
- modules/
panopoly/ panopoly_media/ src/ Update/ ContentModelUpdater.php, line 414
Class
- ContentModelUpdater
- Applies changes to media content model from schema versions 8204 to 8205.
Namespace
Drupal\panopoly_media\UpdateCode
protected function hideEntityFormPaths($type) {
$ids = \Drupal::configFactory()
->listAll('core.entity_form_display.media.' . $type . '.');
foreach ($ids as $id) {
$id = explode('.', $id, 3);
$this
->hideEntityFormPath($id[2]);
}
}