Skip to content

Commit

Permalink
Set sortable field label to has many field
Browse files Browse the repository at this point in the history
  • Loading branch information
roboc committed Jul 3, 2018
1 parent cee9b76 commit 372b52f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Admin/Form/Fields/Sortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,23 @@ public function render()
] );
}

/**
* @return string
*/
public function getLabel()
{
return $this->getField()->getLabel();
}

/**
* @param string $label
* @return HasMany
*/
public function setLabel($label)
{
return $this->getField()->setLabel($label);
}

/**
* @param Request $request
* @return void
Expand Down

0 comments on commit 372b52f

Please sign in to comment.