Mercurial > hg > isophonics-drupal-site
comparison core/modules/node/src/NodePermissions.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\node; | 3 namespace Drupal\node; |
4 | 4 |
5 use Drupal\Core\Routing\UrlGeneratorTrait; | |
6 use Drupal\Core\StringTranslation\StringTranslationTrait; | 5 use Drupal\Core\StringTranslation\StringTranslationTrait; |
7 use Drupal\node\Entity\NodeType; | 6 use Drupal\node\Entity\NodeType; |
8 | 7 |
9 /** | 8 /** |
10 * Provides dynamic permissions for nodes of different types. | 9 * Provides dynamic permissions for nodes of different types. |
11 */ | 10 */ |
12 class NodePermissions { | 11 class NodePermissions { |
13 | 12 |
14 use StringTranslationTrait; | 13 use StringTranslationTrait; |
15 use UrlGeneratorTrait; | |
16 | 14 |
17 /** | 15 /** |
18 * Returns an array of node type permissions. | 16 * Returns an array of node type permissions. |
19 * | 17 * |
20 * @return array | 18 * @return array |