Created
December 18, 2019 16:23
-
-
Save dvlpp/55f37e12a6873d2b2e6bf37234382fa3 to your computer and use it in GitHub Desktop.
SpaceshipSharpShow with pilots
This file contains 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
<?php | |
class SpaceshipSharpShow extends SharpShow | |
{ | |
function buildShowFields() | |
{ | |
// [...] | |
$this | |
->addField( | |
SharpShowEntityListField::make("pilots", "pilot") | |
->showEntityState(false) | |
->showCreateButton() | |
); | |
} | |
// [...] | |
function buildShowLayout() | |
{ | |
// [...] | |
$this | |
->addEntityListSection('Pilots', "pilots"); | |
} | |
// [...] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment