| 1 | <?php |
||
| 14 | class SchoolProfileSerializer extends SerializerAbstract { |
||
| 15 | protected $type = 'school_profiles'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Nothing special here, yet. |
||
| 19 | */ |
||
| 20 | protected function attributes($school_profile) { |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Provides node id as id. |
||
| 26 | */ |
||
| 27 | protected function id($school_profile) { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Backwards-compatible with bnchdrff/json-api version. |
||
| 33 | */ |
||
| 34 | protected function getId($school_profile) { |
||
| 37 | |||
| 38 | } |
||
| 39 |