comparison core/modules/content_moderation/src/ModerationInformationInterface.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
46 * otherwise. 46 * otherwise.
47 */ 47 */
48 public function shouldModerateEntitiesOfBundle(EntityTypeInterface $entity_type, $bundle); 48 public function shouldModerateEntitiesOfBundle(EntityTypeInterface $entity_type, $bundle);
49 49
50 /** 50 /**
51 * Determines if an entity type has at least one moderated bundle.
52 *
53 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
54 * The entity type definition to check.
55 *
56 * @return bool
57 * TRUE if an entity type has a moderated bundle, FALSE otherwise.
58 */
59 public function isModeratedEntityType(EntityTypeInterface $entity_type);
60
61 /**
51 * Loads the latest revision of a specific entity. 62 * Loads the latest revision of a specific entity.
52 * 63 *
53 * @param string $entity_type_id 64 * @param string $entity_type_id
54 * The entity type ID. 65 * The entity type ID.
55 * @param int $entity_id 66 * @param int $entity_id
162 * The workflow entity. NULL if there is no workflow. 173 * The workflow entity. NULL if there is no workflow.
163 */ 174 */
164 public function getWorkflowForEntity(ContentEntityInterface $entity); 175 public function getWorkflowForEntity(ContentEntityInterface $entity);
165 176
166 /** 177 /**
178 * Gets the workflow for the given entity type and bundle.
179 *
180 * @param string $entity_type_id
181 * The entity type ID.
182 * @param string $bundle_id
183 * The entity bundle ID.
184 *
185 * @return \Drupal\workflows\WorkflowInterface|null
186 * The associated workflow. NULL if there is no workflow.
187 */
188 public function getWorkflowForEntityTypeAndBundle($entity_type_id, $bundle_id);
189
190 /**
167 * Gets unsupported features for a given entity type. 191 * Gets unsupported features for a given entity type.
168 * 192 *
169 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type 193 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
170 * The entity type to get the unsupported features for. 194 * The entity type to get the unsupported features for.
171 * 195 *