Skip to content

Commit

Permalink
Merge pull request #65 from roboc/sortable_field
Browse files Browse the repository at this point in the history
Fix #26: Set sortable field label to has many field
  • Loading branch information
roboc committed Jul 3, 2018
2 parents cee9b76 + 372b52f commit cbcfadd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Admin/Form/Fields/Sortable.php
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 cbcfadd

Please sign in to comment.