Skip to content

Commit

Permalink
Update ExtraControl.php
Browse files Browse the repository at this point in the history
  • Loading branch information
accgit committed Nov 7, 2022
1 parent 770ebc5 commit 4296501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Drago/Application/UI/ExtraControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ class ExtraControl extends Control
/**
* Check if there is a pair signal receiver and name.
*/
public function getSignal(): ?int
public function getSignal(string $name = 'edit'): ?int
{
$signal = $this->getPresenter()->getSignal();
return $signal && (in_array('edit', $signal, true)) ? 1 : null;
return $signal && (in_array($name, $signal, true)) ? 1 : null;
}


Expand Down

0 comments on commit 4296501

Please sign in to comment.