PHP Class Flarum\Api\Serializer\GroupSerializer

Inheritance: extends AbstractSerializer
Show file Open project: flarum/core

Protected Properties

Property Type Description
$type

Public Methods

Method Description
__construct ( Symfony\Component\Translation\TranslatorInterface $translator )

Protected Methods

Method Description
getDefaultAttributes ( Group $group )
permissions ( $group ) : Relationship

Private Methods

Method Description
translateGroupName ( string $name ) : string

Method Details

__construct() public method

public __construct ( Symfony\Component\Translation\TranslatorInterface $translator )
$translator Symfony\Component\Translation\TranslatorInterface

getDefaultAttributes() protected method

protected getDefaultAttributes ( Group $group )
$group Flarum\Core\Group

permissions() protected method

protected permissions ( $group ) : Relationship
return Tobscure\JsonApi\Relationship

Property Details

$type protected property

protected $type