Differential D18731 Diff 44973 src/applications/harbormaster/herald/HarbormasterRunBuildPlansHeraldAction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/herald/HarbormasterRunBuildPlansHeraldAction.php
| <?php | <?php | ||||
| final class HarbormasterRunBuildPlansHeraldAction | final class HarbormasterRunBuildPlansHeraldAction | ||||
| extends HeraldAction { | extends HeraldAction { | ||||
| const DO_BUILD = 'do.build'; | const DO_BUILD = 'do.build'; | ||||
| const ACTIONCONST = 'harbormaster.build'; | const ACTIONCONST = 'harbormaster.build'; | ||||
| public function getRequiredAdapterStates() { | |||||
| return array( | |||||
| HeraldBuildableState::STATECONST, | |||||
| ); | |||||
| } | |||||
| public function getActionGroupKey() { | public function getActionGroupKey() { | ||||
| return HeraldSupportActionGroup::ACTIONGROUPKEY; | return HeraldSupportActionGroup::ACTIONGROUPKEY; | ||||
| } | } | ||||
| public function supportsObject($object) { | public function supportsObject($object) { | ||||
| $adapter = $this->getAdapter(); | $adapter = $this->getAdapter(); | ||||
| return ($adapter instanceof HarbormasterBuildableAdapterInterface); | return ($adapter instanceof HarbormasterBuildableAdapterInterface); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines | |||||