public function TeamPermission::__construct in Apigee Edge 8
Same name in this branch
- 8 modules/apigee_edge_teams/src/Structure/TeamPermission.php \Drupal\apigee_edge_teams\Structure\TeamPermission::__construct()
- 8 modules/apigee_edge_teams/src/Plugin/views/access/TeamPermission.php \Drupal\apigee_edge_teams\Plugin\views\access\TeamPermission::__construct()
TeamPermission constructor.
Parameters
string $name: The unique machine name of the team permission.
\Drupal\Core\StringTranslation\TranslatableMarkup $label: The human-readable name of the team permission, to be shown on the team permission administration page.
\Drupal\Core\StringTranslation\TranslatableMarkup $category: The category that the team permission belongs (ex.: "Team Apps", the name of the provider module, etc.), to be shown on the team permission administration page.
\Drupal\Core\StringTranslation\TranslatableMarkup|null $description: A description of what the team permission does, to be shown on the team permission administration page.
File
- modules/
apigee_edge_teams/ src/ Structure/ TeamPermission.php, line 74
Class
- TeamPermission
- Describes a team permission.
Namespace
Drupal\apigee_edge_teams\StructureCode
public function __construct(string $name, TranslatableMarkup $label, TranslatableMarkup $category, ?TranslatableMarkup $description = NULL) {
$this->name = $name;
$this->label = $label;
$this->description = $description;
$this->category = $category;
}