| 1 | <?php |
||
| 7 | trait AdminTrait |
||
| 8 | { |
||
| 9 | use EntityLabelTrait; |
||
| 10 | use TranslationKeyTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Pagerfanta |
||
| 14 | */ |
||
| 15 | protected $pager; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Return the current unique entity. |
||
| 19 | * |
||
| 20 | * @return object |
||
| 21 | */ |
||
| 22 | public abstract function getUniqueEntity(); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return Pagerfanta |
||
| 26 | */ |
||
| 27 | 1 | public function getPager() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Try to find a property to get a label from an entity. If found, it returns the property value through the |
||
| 34 | * property accessor. |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 1 | public function getUniqueEntityLabel() |
|
| 42 | } |
||
| 43 |