Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/content_moderation/src/ViewsData.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
50 */ | 50 */ |
51 public function getViewsData() { | 51 public function getViewsData() { |
52 $data = []; | 52 $data = []; |
53 | 53 |
54 $entity_types_with_moderation = array_filter($this->entityTypeManager->getDefinitions(), function (EntityTypeInterface $type) { | 54 $entity_types_with_moderation = array_filter($this->entityTypeManager->getDefinitions(), function (EntityTypeInterface $type) { |
55 return $this->moderationInformation->canModerateEntitiesOfEntityType($type); | 55 return $this->moderationInformation->isModeratedEntityType($type); |
56 }); | 56 }); |
57 | 57 |
58 // Provides a relationship from moderated entity to its moderation state | 58 // Provides a relationship from moderated entity to its moderation state |
59 // entity. | 59 // entity. |
60 $content_moderation_state_entity_type = $this->entityTypeManager->getDefinition('content_moderation_state'); | 60 $content_moderation_state_entity_type = $this->entityTypeManager->getDefinition('content_moderation_state'); |