📜  drupal 类解析器 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:34.898000             🧑  作者: Mango

代码示例1
function content_moderation_entity_presave(EntityInterface $entity) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityOperations::class)
    ->entityPresave($entity);
}