Last active
November 2, 2018 17:37
-
-
Save janstieler/cfcb155c3c534f9c02f9e7f19683c3be to your computer and use it in GitHub Desktop.
Remove Templates from Module adding form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site/plugins/sortable/sortable/actions/add/forms/add.php | |
foreach($page->blueprint()->pages()->template()->filterBy('name', '*=', $field->prefix()) as $template) { | |
$options[$template->name()] = $template->title(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment